Global Actions - Fix shutdown ui text color
The text color is based upon the wallpaper, which is not relevant when using a basic scrim. Have the text color match the global actions menu items and controls. Fixes: 170791176 Test: manual, restart the device Change-Id: I5ff07acbb1a247a6dc8c76ff2be5dc893ae3da96
This commit is contained in:
@@ -54,6 +54,8 @@
|
||||
<color name="global_actions_emergency_background">@color/GM2_red_400</color>
|
||||
<color name="global_actions_emergency_text">@color/GM2_grey_100</color>
|
||||
|
||||
<color name="global_actions_shutdown_ui_text">@color/control_primary_text</color>
|
||||
|
||||
<!-- Tint color for the content on the notification overflow card. -->
|
||||
<color name="keyguard_overflow_content_color">#ff686868</color>
|
||||
|
||||
|
||||
@@ -140,8 +140,14 @@ public class GlobalActionsImpl implements GlobalActions, CommandQueue.Callbacks
|
||||
d.setContentView(R.layout.shutdown_dialog);
|
||||
d.setCancelable(false);
|
||||
|
||||
int color = Utils.getColorAttrDefaultColor(mContext,
|
||||
com.android.systemui.R.attr.wallpaperTextColor);
|
||||
int color;
|
||||
if (mBlurUtils.supportsBlursOnWindows()) {
|
||||
color = Utils.getColorAttrDefaultColor(mContext,
|
||||
com.android.systemui.R.attr.wallpaperTextColor);
|
||||
} else {
|
||||
color = mContext.getResources().getColor(
|
||||
com.android.systemui.R.color.global_actions_shutdown_ui_text);
|
||||
}
|
||||
|
||||
ProgressBar bar = d.findViewById(R.id.progress);
|
||||
bar.getIndeterminateDrawable().setTint(color);
|
||||
|
||||
Reference in New Issue
Block a user