allow to do not handle swipe back

This commit is contained in:
cgspine
2021-06-24 17:29:17 +08:00
parent 61e7abd4c6
commit 5b0946858d
@@ -511,7 +511,7 @@ public abstract class QMUIFragment extends Fragment implements
mCalled = false;
boolean canHandle = canHandleSwipeBack();
if (!mCalled) {
if (canHandle && !mCalled) {
throw new RuntimeException(getClass().getSimpleName() + " did not call through to super.shouldPreventSwipeBack()");
}