Media notification updates
- Make text white.
- Adjust padding & metrics to redlines.
- Use different narrow layout when 3 or less notifications with big
picture.
- Update action ripples.
- Fix progress bar size & fix color for indeterminate progress bar.
- Apply default background in SystemUI when no color is set, so we
don't end up with white text on white background.
Bug: 15437369
Bug: 16625746
Bug: 15147533
Change-Id: Ie8bd5ad0bbca972685adb50034fff88ea97456bd
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index f04c8c8..d1eb83b 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -677,7 +677,10 @@
// Using platform templates
final int color = sbn.getNotification().color;
if (isMediaNotification(entry)) {
- entry.row.setTintColor(color);
+ entry.row.setTintColor(color == Notification.COLOR_DEFAULT
+ ? mContext.getResources().getColor(
+ R.color.notification_material_background_media_default_color)
+ : color);
}
}
@@ -693,7 +696,7 @@
public boolean isMediaNotification(NotificationData.Entry entry) {
// TODO: confirm that there's a valid media key
return entry.expandedBig != null &&
- entry.expandedBig.findViewById(com.android.internal.R.id.media_action_area) != null;
+ entry.expandedBig.findViewById(com.android.internal.R.id.media_actions) != null;
}
private void startAppNotificationSettingsActivity(String packageName, final int appUid) {