Make app predicates singleton
1. AppLabelPredicate 2. AppRestrictionPredicate Change-Id: I1fd8611c5dd7ffa6318bcb23de7a973c111910b6 Fixes: 111323520 Test: RunSettingsRoboTests
This commit is contained in:
@@ -112,7 +112,7 @@ public class RestrictAppTip extends BatteryTip {
|
||||
super.sanityCheck(context);
|
||||
|
||||
// Set it invisible if there is no valid app
|
||||
mRestrictAppList.removeIf(new AppLabelPredicate(context));
|
||||
mRestrictAppList.removeIf(AppLabelPredicate.getInstance(context));
|
||||
if (mRestrictAppList.isEmpty()) {
|
||||
mState = StateType.INVISIBLE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user