Merge "Ensure that android is restarted when setting sysprop flag." into tm-dev am: ba18f98cfe

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17007805

Change-Id: Iabdaa7e02a11f272773184de6eec20545ff17c4a
This commit is contained in:
TreeHugger Robot
2022-02-25 00:43:37 +00:00
committed by Automerger Merge Worker

View File

@@ -317,6 +317,8 @@ public class FeatureFlagsDebug implements FeatureFlags, Dumpable {
// Store SysProp flags in SystemProperties where they can read by outside parties.
mSystemProperties.setBoolean(
((SysPropBooleanFlag) flag).getName(), (Boolean) value);
dispatchListenersAndMaybeRestart(flag.getId(),
FeatureFlagsDebug.this::restartAndroid);
} else if (flag instanceof StringFlag && value instanceof String) {
setFlagValue(id, (String) value, StringFlagSerializer.INSTANCE);
} else if (flag instanceof ResourceStringFlag && value instanceof String) {