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

Commit b3efa585 authored by Bonian Chen's avatar Bonian Chen Committed by Gerrit Code Review
Browse files

Merge "[Settings] subscription UI should be closed when SIM is removed"

parents 36cfa7db 22a70a5e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -158,6 +158,11 @@ public class MobileNetworkActivity extends SettingsBaseActivity

        // Remove the dialog if the subscription associated with this activity changes.
        if (info == null) {
            // Close the activity when subscription removed
            if ((oldSubIndex != SUB_ID_NULL)
                    && (!isFinishing()) && (!isDestroyed())) {
                finish();
            }
            return;
        }
        int subIndex = info.getSubscriptionId();