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

Commit 24dfc61f authored by Bonian Chen's avatar Bonian Chen
Browse files

[Crash] finish activity without super#onResume()

When finish() an activity within onStart() or onResume(),
super#onStart() or super#onResume() need to be invoked prior to
finish().

Bug: 200513672
Test: local
Change-Id: Ifba0956fb3a11888c84f55342f62a3f192a67294
parent 70b2d886
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -207,6 +207,7 @@ public class MobileNetworkActivity extends SettingsBaseActivity
    protected void runSubscriptionUpdate(Runnable onUpdateRemaining) {
        SubscriptionInfo subInfo = getSubscription(mCurSubscriptionId, null);
        if (subInfo == null) {
            onUpdateRemaining.run();
            tryToFinishActivity();
            return;
        }