Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e05b699b authored by Tom Hsu's avatar Tom Hsu Committed by Android (Google) Code Review
Browse files

Merge "Prevent crash when fragment lifecycle is after onStop" into main

parents f3b59755 b4108cb1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ public abstract class SimDialogFragment extends InstrumentedDialogFragment imple

    @Override
    public void dismiss() {
        if (isStateSaved()) {
            Log.d(TAG, "fragment saved state, so bypass dismiss");
            return;
        }
        mChangeListener.stop();
        super.dismiss();
    }