Handling configuration changes at runtime instead of killing the process

Change-Id: I0c7f7e58ddb690f371c257b6142a4e918e9acb7f
This commit is contained in:
Sunny Goyal committed 2018-10-19 12:52:17 -07:00
1 parent 6e11a2d9f2
commit 87dc48b7bf
7 files changed
+168 -48

No files matched your search

@@ -84,6 +84,12 @@ abstract class BaseFlags {
// trying to make them fit the orientation the device is in.
public static final boolean OVERVIEW_USE_SCREENSHOT_ORIENTATION = true;
/**
* Feature flag to handle define config changes dynamically instead of killing the process.
*/
public static final TogglableFlag APPLY_CONFIG_AT_RUNTIME = new TogglableFlag(
"APPLY_CONFIG_AT_RUNTIME", false, "Apply display changes dynamically");
public static void initialize(Context context) {
// Avoid the disk read for builds without the flags UI.
if (showFlagTogglerUi()) {
@@ -188,5 +194,4 @@ abstract class BaseFlags {
return h$;
}
}
}