Merge "Protect against monkey crash" into nyc-dev am: 25d69a1
am: dca0f7a
* commit 'dca0f7ae2af427be6142e6cf83ed562a4cfef4d2':
Protect against monkey crash
Change-Id: I6917dd2e608774de25f30ccc83c202b0ca1dc0bb
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user