From 5cf6373c31325f2b7ee31241fe31bc0e4f87d67c Mon Sep 17 00:00:00 2001 From: dshivangi Date: Fri, 17 Mar 2023 14:14:56 +0000 Subject: [PATCH] Change background color of fold/unfold Changed background color of fold/unfold from matching taskbar color to dark Test: manual Fixes: 273512066 Change-Id: I51ab94989e34bcc758dfa2652dddbcb39a711672 --- libs/WindowManager/Shell/res/color/unfold_background.xml | 4 ++++ .../android/wm/shell/unfold/UnfoldBackgroundController.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 libs/WindowManager/Shell/res/color/unfold_background.xml diff --git a/libs/WindowManager/Shell/res/color/unfold_background.xml b/libs/WindowManager/Shell/res/color/unfold_background.xml new file mode 100644 index 0000000000000..e33eb126012d5 --- /dev/null +++ b/libs/WindowManager/Shell/res/color/unfold_background.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldBackgroundController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldBackgroundController.java index 86ca292399cbd..fe0a3fb7b9dc3 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldBackgroundController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/UnfoldBackgroundController.java @@ -79,7 +79,7 @@ public class UnfoldBackgroundController { } private float[] getBackgroundColor(Context context) { - int colorInt = context.getResources().getColor(R.color.taskbar_background); + int colorInt = context.getResources().getColor(R.color.unfold_background); return new float[]{ (float) red(colorInt) / 255.0F, (float) green(colorInt) / 255.0F,