Merge "Protect against monkey crash" into nyc-dev

This commit is contained in:
Jason Monk
2016-04-13 16:45:16 +00:00
committed by Android (Google) Code Review

View File

@@ -100,6 +100,9 @@ public class DataSaverSummary extends SettingsPreferenceFragment
@Override
public void onExtraInfoUpdated() {
if (!isAdded()) {
return;
}
int count = 0;
final ArrayList<AppEntry> allApps = mSession.getAllApps();
final int N = allApps.size();