summaryrefslogtreecommitdiff
path: root/src/com/android
diff options
context:
space:
mode:
authorBecky Qiu <xuqiu@google.com>2023-07-11 17:22:59 -0700
committerBecky Qiu <xuqiu@google.com>2023-07-12 00:25:58 +0000
commitaa6612d3731a3e98f716747b0ede473e3bbca161 (patch)
tree8b6d3372eec1718a6e9d3c447027c2821e233d5b /src/com/android
parent3d1e78a49640171ccb066770456361318523093e (diff)
downloadLauncher3-aa6612d3731a3e98f716747b0ede473e3bbca161.tar.gz
Fix the issue that on tablet/unfold, the allapps background color is wrong.
As the new spec, it should use materialColorSurfaceDim for all devices. Bug: 288493929 Test: manual, before: https://screenshot.googleplex.com/7YxpFGekwm6Gz6N, after: https://screenshot.googleplex.com/44Gr2dBfWSct7FK Flag: no flag needed. Change-Id: Ic33d9a758fe9fbaa0f735c874a545df711a18e2f
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java
index d4140d851c..1977704588 100644
--- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java
@@ -43,7 +43,6 @@ import android.util.AttributeSet;
import android.util.FloatProperty;
import android.util.Log;
import android.util.SparseArray;
-import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
@@ -272,9 +271,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
0,
0 // Bottom left
};
- final TypedValue value = new TypedValue();
- getContext().getTheme().resolveAttribute(android.R.attr.colorBackground, value, true);
- mBottomSheetBackgroundColor = value.data;
+ mBottomSheetBackgroundColor =
+ Themes.getAttrColor(getContext(), R.attr.materialColorSurfaceDim);
updateBackgroundVisibility(mActivityContext.getDeviceProfile());
mSearchUiManager.initializeSearch(this);
}