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);
|
bindHeaderChronometerAndTime(contentView);
|
||||||
bindProfileBadge(contentView);
|
bindProfileBadge(contentView);
|
||||||
}
|
}
|
||||||
bindActivePermissions(contentView);
|
bindActivePermissions(contentView, ambient);
|
||||||
bindExpandButton(contentView);
|
bindExpandButton(contentView);
|
||||||
mN.mUsesStandardHeader = true;
|
mN.mUsesStandardHeader = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bindActivePermissions(RemoteViews contentView) {
|
private void bindActivePermissions(RemoteViews contentView, boolean ambient) {
|
||||||
int color = isColorized() ? getPrimaryTextColor() : getSecondaryTextColor();
|
int color = ambient ? resolveAmbientColor()
|
||||||
|
: isColorized() ? getPrimaryTextColor() : resolveContrastColor();
|
||||||
contentView.setDrawableTint(R.id.camera, false, color, PorterDuff.Mode.SRC_ATOP);
|
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.mic, false, color, PorterDuff.Mode.SRC_ATOP);
|
||||||
contentView.setDrawableTint(R.id.overlay, 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:layout_gravity="center"
|
||||||
android:contentDescription="@string/accessibility_volume_settings"
|
android:contentDescription="@string/accessibility_volume_settings"
|
||||||
android:background="@drawable/ripple_drawable_20dp"
|
android:background="@drawable/ripple_drawable_20dp"
|
||||||
android:tint="?android:attr/colorControlNormal"
|
android:tint="?android:attr/textColorHint"
|
||||||
android:soundEffectsEnabled="false" />
|
android:soundEffectsEnabled="false" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -1586,7 +1586,7 @@
|
|||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
<string name="notification_appops_settings">Settings</string>
|
<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
|
<!-- Notification: Control panel: Accessibility description for expanded inline controls view, used
|
||||||
to control settings about notifications related to the current notification. -->
|
to control settings about notifications related to the current notification. -->
|
||||||
|
|||||||
Reference in New Issue
Block a user