Fix crash when removing account.

Bug: 3248351
This commit is contained in:
Amith Yamasani
2010-12-03 12:26:20 -08:00
parent 68b975513a
commit 564e68aece

View File

@@ -346,6 +346,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
@Override
protected void onSyncStateUpdated() {
if (!isResumed()) return;
// iterate over all the preferences, setting the state properly for each
Date date = new Date();
List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncs();