Merge "[Bouncer] Update color for userswitcher." into tm-qpr-dev am: 5c9e779352
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20067974 Change-Id: I3065b41e1d5eab6813516156a1b3f9da178098e4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
android:paddingEnd="0dp">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="?androidprv:attr/colorSurface" />
|
||||
<solid android:color="?androidprv:attr/colorSurfaceHighlight" />
|
||||
<corners android:radius="32dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/user_switcher_key_down"
|
||||
android:drawable="@drawable/ic_ksh_key_down"
|
||||
android:gravity="end|center_vertical"
|
||||
android:width="32dp"
|
||||
|
||||
@@ -1073,6 +1073,11 @@ public class KeyguardSecurityContainer extends FrameLayout {
|
||||
android.R.attr.textColorPrimary));
|
||||
header.setBackground(mView.getContext().getDrawable(
|
||||
R.drawable.bouncer_user_switcher_header_bg));
|
||||
Drawable keyDownDrawable =
|
||||
((LayerDrawable) header.getBackground().mutate()).findDrawableByLayerId(
|
||||
R.id.user_switcher_key_down);
|
||||
keyDownDrawable.setTintList(Utils.getColorAttr(mView.getContext(),
|
||||
android.R.attr.textColorPrimary));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user