Refine update process for restrict tip.

When restrict tip update, we should also update app list unless it goes
from NEW to INVISIBLE. After that it won't show "0 apps been
restricted".

Change-Id: Iedf4288fcddfe632a9ba8c16afdfb5bc044bce2e
Fix: 79890132
Test: RunSettingsRoboTests
This commit is contained in:
Lei Yu
2018-05-18 13:00:03 -07:00
parent cd28a977ca
commit 551a1a0176
2 changed files with 14 additions and 4 deletions

View File

@@ -103,6 +103,7 @@ public class RestrictAppTip extends BatteryTip {
} else {
mState = tip.getState();
mShowDialog = tip.shouldShowDialog();
mRestrictAppList = ((RestrictAppTip) tip).mRestrictAppList;
}
}