mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-17 04:31:16 +08:00
allow to do not handle swipe back
This commit is contained in:
@@ -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()");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user