Merge "Fix a Deletion Helper crash when it fails to get an app list." into nyc-mr1-dev

This commit is contained in:
Daniel Nishi
2016-04-27 20:31:57 +00:00
committed by Android (Google) Code Review

View File

@@ -153,6 +153,7 @@ public class DeletionHelperFragment extends SettingsPreferenceFragment implement
final ArrayList<AppEntry> apps =
mSession.rebuild(AppStateUsageStatsBridge.FILTER_USAGE_STATS,
ApplicationsState.SIZE_COMPARATOR);
if (apps == null) return;
mAppEntries = apps;
cacheRemoveAllPrefs(mApps);
int entryCount = apps.size();