commit | 64746f8a29c6d8c11e15720b767fabfd64bd8cb4 | [log] [tgz] |
---|---|---|
author | Becky Qiu <xuqiu@google.com> | Thu Jul 13 19:02:27 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jul 13 19:02:27 2023 +0000 |
tree | 9543b1f24aee5c9484181e9600deacd9ae150ed2 | |
parent | ea547ecb4a077c41ddcb0196bf46c1f2f98cbece [diff] | |
parent | aa6612d3731a3e98f716747b0ede473e3bbca161 [diff] |
Fix the issue that on tablet/unfold, the allapps background color is wrong. am: aa6612d373 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24030571 Change-Id: I513daa1fdeb8d5582bd0cec9b8b2eb4d043f2543 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index 421dfd3..7e943a9 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java
@@ -45,7 +45,6 @@ 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; @@ -275,9 +274,8 @@ 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); }