Merge "Ensure colors for active permission icons" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
46d03c2914
@@ -4588,10 +4588,18 @@ public class Notification implements Parcelable
|
||||
bindHeaderChronometerAndTime(contentView);
|
||||
bindProfileBadge(contentView);
|
||||
}
|
||||
bindActivePermissions(contentView);
|
||||
bindExpandButton(contentView);
|
||||
mN.mUsesStandardHeader = true;
|
||||
}
|
||||
|
||||
private void bindActivePermissions(RemoteViews contentView) {
|
||||
int color = isColorized() ? getPrimaryTextColor() : getSecondaryTextColor();
|
||||
contentView.setDrawableTint(R.id.camera, false, color, PorterDuff.Mode.SRC_ATOP);
|
||||
contentView.setDrawableTint(R.id.mic, false, color, PorterDuff.Mode.SRC_ATOP);
|
||||
contentView.setDrawableTint(R.id.overlay, false, color, PorterDuff.Mode.SRC_ATOP);
|
||||
}
|
||||
|
||||
private void bindExpandButton(RemoteViews contentView) {
|
||||
int color = isColorized() ? getPrimaryTextColor() : getSecondaryTextColor();
|
||||
contentView.setDrawableTint(R.id.expand_button, false, color,
|
||||
|
||||
@@ -138,7 +138,6 @@
|
||||
android:layout_width="?attr/notificationHeaderIconSize"
|
||||
android:layout_height="?attr/notificationHeaderIconSize"
|
||||
android:src="@drawable/ic_camera"
|
||||
android:tint="@color/notification_secondary_text_color_light"
|
||||
android:background="?android:selectableItemBackgroundBorderless"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
@@ -147,7 +146,6 @@
|
||||
android:layout_width="?attr/notificationHeaderIconSize"
|
||||
android:layout_height="?attr/notificationHeaderIconSize"
|
||||
android:src="@drawable/ic_mic"
|
||||
android:tint="@color/notification_secondary_text_color_light"
|
||||
android:background="?android:selectableItemBackgroundBorderless"
|
||||
android:layout_marginStart="4dp"
|
||||
android:visibility="gone"
|
||||
@@ -157,7 +155,6 @@
|
||||
android:layout_width="?attr/notificationHeaderIconSize"
|
||||
android:layout_height="?attr/notificationHeaderIconSize"
|
||||
android:src="@drawable/ic_alert_window_layer"
|
||||
android:tint="@color/notification_secondary_text_color_light"
|
||||
android:background="?android:selectableItemBackgroundBorderless"
|
||||
android:layout_marginStart="4dp"
|
||||
android:visibility="gone"
|
||||
|
||||
Reference in New Issue
Block a user