Merge "Protect against monkey crash" into nyc-dev

am: 25d69a1

* commit '25d69a1ae3e4d28c64e1ee18990f9b7b2f0d4238':
  Protect against monkey crash

Change-Id: I926659f92f915fc7d991ddac7f41020b0caac558
This commit is contained in:
Jason Monk
2016-04-13 16:56:47 +00:00
committed by android-build-merger

View File

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