mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Developer options should reflect the correct DeviceConfig value for ReleaseFlag. am: 13517070d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24945015 Change-Id: Ic0b22dd740409cafc3a4224e3dba3ed7ac60516f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -116,8 +116,9 @@ public class FlagsFactory {
|
||||
boolean defaultValue = DeviceConfig.getBoolean(NAMESPACE_LAUNCHER, key, defaultValueInCode);
|
||||
if (IS_DEBUG_DEVICE) {
|
||||
boolean currentValue = getSharedPreferences().getBoolean(key, defaultValue);
|
||||
DebugFlag flag = new DeviceFlag(key, description, flagState, currentValue,
|
||||
defaultValueInCode);
|
||||
DebugFlag flag = new DeviceFlag(key, description,
|
||||
(defaultValue == defaultValueInCode) ? flagState
|
||||
: defaultValue ? ENABLED : DISABLED, currentValue, defaultValueInCode);
|
||||
sDebugFlags.add(flag);
|
||||
return flag;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user