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: I30e50366185c508d4b307f4b3a017355901a4510
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Becky Qiu
2023-07-13 19:03:05 +00:00
committed by Automerger Merge Worker
@@ -43,7 +43,6 @@ import android.util.AttributeSet;
import android.util.FloatProperty; import android.util.FloatProperty;
import android.util.Log; import android.util.Log;
import android.util.SparseArray; import android.util.SparseArray;
import android.util.TypedValue;
import android.view.KeyEvent; import android.view.KeyEvent;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MotionEvent; import android.view.MotionEvent;
@@ -272,9 +271,8 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
0, 0,
0 // Bottom left 0 // Bottom left
}; };
final TypedValue value = new TypedValue(); mBottomSheetBackgroundColor =
getContext().getTheme().resolveAttribute(android.R.attr.colorBackground, value, true); Themes.getAttrColor(getContext(), R.attr.materialColorSurfaceDim);
mBottomSheetBackgroundColor = value.data;
updateBackgroundVisibility(mActivityContext.getDeviceProfile()); updateBackgroundVisibility(mActivityContext.getDeviceProfile());
mSearchUiManager.initializeSearch(this); mSearchUiManager.initializeSearch(this);
} }