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

Commit 5a820f87 authored by chelseahao's avatar chelseahao
Browse files

Caching height bluetooth tile dialog to avoid double animation.

Test: manual
Bug: b/310135234
Change-Id: I88869fff6b27addb3b8dca1b0f61c10c7bc18a70
parent 9fde926e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -73,7 +73,8 @@ public final class Prefs {
            Key.ACCESSIBILITY_FLOATING_MENU_POSITION,
            Key.HAS_CLICKED_NUDGE_TO_SETUP_DREAM,
            Key.HAS_DISMISSED_NUDGE_TO_SETUP_DREAM,
            Key.HAS_ACCESSIBILITY_FLOATING_MENU_TUCKED
            Key.HAS_ACCESSIBILITY_FLOATING_MENU_TUCKED,
            Key.BLUETOOTH_TILE_DIALOG_CONTENT_HEIGHT,
    })
    // TODO: annotate these with their types so {@link PrefsCommandLine} can know how to set them
    public @interface Key {
@@ -119,6 +120,7 @@ public final class Prefs {
        String HAS_CLICKED_NUDGE_TO_SETUP_DREAM = "HasClickedNudgeToSetupDream";
        String HAS_DISMISSED_NUDGE_TO_SETUP_DREAM = "HasDismissedNudgeToSetupDream";
        String HAS_ACCESSIBILITY_FLOATING_MENU_TUCKED = "HasAccessibilityFloatingMenuTucked";
        String BLUETOOTH_TILE_DIALOG_CONTENT_HEIGHT = "BluetoothTileDialogContentHeight";
    }

    public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) {