Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25ea5b85 authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix contrast enforcement for RemoteInputView

Previously, the disabled color was used for the contrast
calculations, which resulted in too dark RemoteInputView
backgrounds.

Change-Id: I99e8b2fa64a22a59fdc5d1be8a6aff5af3523a27
Fixes: 28429720
parent 5149abe7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -846,7 +846,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()) {