From 1c15229be6e963182e7cefb571d644e7a21784fe Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 25 Jan 2024 22:48:59 -0800 Subject: [PATCH] Init with mIsLumaSamplingEnabled = true Bug: 230395757 Test: Factory reset in unfolded. Check bar sampling. Fold and swipe up from an app different from system color to overview. Observe the bar color change. Change-Id: I7d94a3a8f17a40fbabd4d65629846eb12bdbd3d6 --- .../com/android/launcher3/taskbar/TaskbarSharedState.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarSharedState.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarSharedState.java index 41b777b4e1..e2c71bf7ce 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarSharedState.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarSharedState.java @@ -15,6 +15,7 @@ */ package com.android.launcher3.taskbar; +import static android.view.Display.DEFAULT_DISPLAY; import static android.view.InsetsFrameProvider.SOURCE_DISPLAY; import static android.view.WindowInsets.Type.mandatorySystemGestures; import static android.view.WindowInsets.Type.navigationBars; @@ -53,8 +54,8 @@ public class TaskbarSharedState { public float navButtonsDarkIntensity; // TaskbarManager#onNavigationBarLumaSamplingEnabled() - public int mLumaSamplingDisplayId; - public boolean mIsLumaSamplingEnabled; + public int mLumaSamplingDisplayId = DEFAULT_DISPLAY; + public boolean mIsLumaSamplingEnabled = true; public boolean setupUIVisible = false;