commit | 17fa6106d68bb08edf66d9f2a1bee551a3a1684b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Oct 11 23:39:06 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Oct 11 23:39:06 2021 +0000 |
tree | f6fe1e22b6d39d22fbb800a42919616a2933f023 | |
parent | 625a526f3374524632f3bf49276f25dde5cbcbc2 [diff] | |
parent | ae20cabd25d154e9708ec6600475398fe552fb90 [diff] |
Merge "Don't update preference list when there's no Activity for it."
diff --git a/src/com/android/phone/settings/PhoneAccountSettingsFragment.java b/src/com/android/phone/settings/PhoneAccountSettingsFragment.java index 224a1f9..6bc71dc 100644 --- a/src/com/android/phone/settings/PhoneAccountSettingsFragment.java +++ b/src/com/android/phone/settings/PhoneAccountSettingsFragment.java
@@ -78,6 +78,9 @@ new SubscriptionManager.OnSubscriptionsChangedListener() { @Override public void onSubscriptionsChanged() { + if (getActivity() == null) { + return; + } updateAccounts(); } };