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

Commit b4108cb1 authored by tomhsu's avatar tomhsu
Browse files

Prevent crash when fragment lifecycle is after onStop

Fix: 325059602
Test: build pass
Change-Id: Ie132b4fd6b6c7df8c0fe188e0eb238f562fd4d6e
parent 8e103fc4
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();
    }