Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05258fe0 authored by burakov's avatar burakov Committed by Danny Burakov
Browse files

[Dual Shade] Add new setting for enabling Dual Shade.

This setting will soon replace the feature flag:
`com.android.systemui.dual_shade`.

It is a secure setting (tied to the user) and will be backed up.

To enable the setting via ADB:
`adb shell settings put secure dual_shade 1`

To check the setting via ADB:
`adb shell settings get secure dual_shade`

Test: N/A - adding the constant
Flag: EXEMPT constant is not yet used
Bug: 388793191
Change-Id: Ica8002cb61c76c8ece812515e288f14e4b3e1537
parent 6320ec35
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -11008,6 +11008,21 @@ public final class Settings {
        @Readable
        public static final String SHOW_NOTIFICATION_SNOOZE = "show_notification_snooze";
        /**
         * Controls whether dual shade is enabled. This splits notifications and quick settings to
         * have their own independently expandable/collapsible panels, appearing on either side of
         * the large screen (including unfolded device) or sharing a space on a narrow screen
         * (including a folded device). Both panels will now cover the screen only partially
         * (wrapping their content), so a running app or the lockscreen will remain visible in the
         * background.
         * <p>
         * Type: int (0 for false, 1 for true)
         *
         * @hide
         */
        @android.provider.Settings.Readable
        public static final String DUAL_SHADE = "dual_shade";
       /**
         * 1 if it is allowed to remove the primary GAIA account. 0 by default.
         * @hide
+1 −0
Original line number Diff line number Diff line
@@ -291,5 +291,6 @@ public class SecureSettings {
        Settings.Secure.FACE_KEYGUARD_ENABLED,
        Settings.Secure.FINGERPRINT_APP_ENABLED,
        Settings.Secure.FINGERPRINT_KEYGUARD_ENABLED,
        Settings.Secure.DUAL_SHADE,
    };
}
+1 −0
Original line number Diff line number Diff line
@@ -460,5 +460,6 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.FACE_KEYGUARD_ENABLED,  BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.FINGERPRINT_APP_ENABLED,  BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.FINGERPRINT_KEYGUARD_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.DUAL_SHADE, BOOLEAN_VALIDATOR);
    }
}