Fix crash when removing account.
Bug: 3248351
This commit is contained in:
@@ -346,6 +346,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onSyncStateUpdated() {
|
protected void onSyncStateUpdated() {
|
||||||
|
if (!isResumed()) return;
|
||||||
// iterate over all the preferences, setting the state properly for each
|
// iterate over all the preferences, setting the state properly for each
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncs();
|
List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncs();
|
||||||
|
Reference in New Issue
Block a user