[Settings] Avoid non-owner from crash mobile data settings
Some instance not been initialized under non-owner user mode. Bug: 146562321 Test: manual Change-Id: I4f8ac955754cbd8692727a1d0adf283ef3ff512c
This commit is contained in:
@@ -118,6 +118,9 @@ public class MobileNetworkActivity extends SettingsBaseActivity
|
|||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
if (mProxySubscriptionMgr == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mProxySubscriptionMgr.removeActiveSubscriptionsListener(this);
|
mProxySubscriptionMgr.removeActiveSubscriptionsListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user