Make booleans final.

Follow up on ag/5838263.

bug: 121169664
Test: m
Change-Id: I80bacdce9bd1dd62ea5b703d3bee91d34167060a
This commit is contained in:
Nicholas Sauer
2018-12-20 10:56:01 -08:00
parent aa63fe5625
commit ce000798e2

View File

@@ -20124,10 +20124,10 @@ public class PackageManagerService extends IPackageManager.Stub
ContentObserver co = new ContentObserver(mHandler) {
@Override
public void onChange(boolean selfChange) {
boolean ephemeralFeatureDisabled =
final boolean ephemeralFeatureDisabled =
Global.getInt(resolver, Global.ENABLE_EPHEMERAL_FEATURE, 1) == 0;
for (int userId : UserManagerService.getInstance().getUserIds()) {
boolean instantAppsDisabledForUser =
final boolean instantAppsDisabledForUser =
ephemeralFeatureDisabled || Secure.getIntForUser(resolver,
Secure.INSTANT_APPS_ENABLED, 1, userId) == 0;
mWebInstantAppsDisabled.put(userId, instantAppsDisabledForUser);