Merge "Fix contrast enforcement for RemoteInputView" into nyc-dev am: 7461032

am: f848873

* commit 'f8488735124cd59c2a2b15039ed4ff2491eea687':
  Fix contrast enforcement for RemoteInputView

Change-Id: I2e4e7d48ea99c86950d6f66883a9add1b58359b5
This commit is contained in:
TreeHugger Robot
2016-04-28 01:41:22 +00:00
committed by android-build-merger
3 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,6 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:color="@android:color/white" />
<item android:state_enabled="true" android:color="@color/remote_input_text_enabled" /> <!-- white -->
<item android:color="#99ffffff" /> <!-- 60% white -->
</selector>

View File

@@ -157,6 +157,7 @@
<color name="minimize_dock_shadow_end">#00000000</color>
<color name="default_remote_input_background">@*android:color/notification_default_color</color>
<color name="remote_input_text_enabled">#ffffffff</color>
<color name="remote_input_hint">#99ffffff</color>
<color name="remote_input_accent">#eeeeee</color>

View File

@@ -873,7 +873,7 @@ public class NotificationContentView extends FrameLayout {
color = mContext.getColor(R.color.default_remote_input_background);
}
existing.setBackgroundColor(NotificationColorUtil.ensureTextBackgroundColor(color,
mContext.getColor(R.color.remote_input_text),
mContext.getColor(R.color.remote_input_text_enabled),
mContext.getColor(R.color.remote_input_hint)));
if (existingPendingIntent != null || existing.isActive()) {