Merge "Ensure that android is restarted when setting sysprop flag." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ba18f98cfe
@@ -317,6 +317,8 @@ public class FeatureFlagsDebug implements FeatureFlags, Dumpable {
|
|||||||
// Store SysProp flags in SystemProperties where they can read by outside parties.
|
// Store SysProp flags in SystemProperties where they can read by outside parties.
|
||||||
mSystemProperties.setBoolean(
|
mSystemProperties.setBoolean(
|
||||||
((SysPropBooleanFlag) flag).getName(), (Boolean) value);
|
((SysPropBooleanFlag) flag).getName(), (Boolean) value);
|
||||||
|
dispatchListenersAndMaybeRestart(flag.getId(),
|
||||||
|
FeatureFlagsDebug.this::restartAndroid);
|
||||||
} else if (flag instanceof StringFlag && value instanceof String) {
|
} else if (flag instanceof StringFlag && value instanceof String) {
|
||||||
setFlagValue(id, (String) value, StringFlagSerializer.INSTANCE);
|
setFlagValue(id, (String) value, StringFlagSerializer.INSTANCE);
|
||||||
} else if (flag instanceof ResourceStringFlag && value instanceof String) {
|
} else if (flag instanceof ResourceStringFlag && value instanceof String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user