Merge "[Settings] Avoid non-owner from crash mobile data settings"

This commit is contained in:
Bonian Chen
2020-02-01 05:00:03 +00:00
committed by Android (Google) Code Review

View File

@@ -118,6 +118,9 @@ public class MobileNetworkActivity extends SettingsBaseActivity
@Override
protected void onDestroy() {
super.onDestroy();
if (mProxySubscriptionMgr == null) {
return;
}
mProxySubscriptionMgr.removeActiveSubscriptionsListener(this);
}