Merge "Color and text changes" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
03ddb28cda
@@ -4574,13 +4574,14 @@ public class Notification implements Parcelable
|
||||
bindHeaderChronometerAndTime(contentView);
|
||||
bindProfileBadge(contentView);
|
||||
}
|
||||
bindActivePermissions(contentView);
|
||||
bindActivePermissions(contentView, ambient);
|
||||
bindExpandButton(contentView);
|
||||
mN.mUsesStandardHeader = true;
|
||||
}
|
||||
|
||||
private void bindActivePermissions(RemoteViews contentView) {
|
||||
int color = isColorized() ? getPrimaryTextColor() : getSecondaryTextColor();
|
||||
private void bindActivePermissions(RemoteViews contentView, boolean ambient) {
|
||||
int color = ambient ? resolveAmbientColor()
|
||||
: isColorized() ? getPrimaryTextColor() : resolveContrastColor();
|
||||
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);
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/accessibility_volume_settings"
|
||||
android:background="@drawable/ripple_drawable_20dp"
|
||||
android:tint="?android:attr/colorControlNormal"
|
||||
android:tint="?android:attr/textColorHint"
|
||||
android:soundEffectsEnabled="false" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1586,7 +1586,7 @@
|
||||
</plurals>
|
||||
|
||||
<string name="notification_appops_settings">Settings</string>
|
||||
<string name="notification_appops_ok">Ok</string>
|
||||
<string name="notification_appops_ok">OK</string>
|
||||
|
||||
<!-- Notification: Control panel: Accessibility description for expanded inline controls view, used
|
||||
to control settings about notifications related to the current notification. -->
|
||||
|
||||
Reference in New Issue
Block a user