Merge "Handling configuration changes at runtime instead of killing the process" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2018-10-23 19:46:11 +00:00
committed by Android (Google) Code Review
7 changed files with 168 additions and 48 deletions

View File

@@ -87,6 +87,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 user builds
if (Utilities.IS_DEBUG_DEVICE) {
@@ -191,5 +197,4 @@ abstract class BaseFlags {
return h$;
}
}
}