Commit 0b8f325d authored by zhang_z's avatar zhang_z

修复了一个快速点击返回键可能导致系统崩溃的问题;

parent aab037d9
...@@ -140,4 +140,13 @@ public abstract class BaseActivity<P extends BasePresenter, B extends ViewDataBi ...@@ -140,4 +140,13 @@ public abstract class BaseActivity<P extends BasePresenter, B extends ViewDataBi
} }
super.onResume(); super.onResume();
} }
@Override
public void pop() {
if (getSupportFragmentManager().getFragments().size() > 1) {
super.pop();
} else {
finish();
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment