From b8ba59160f34181b23c9f60086103ed583a16dc9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 31 Oct 2021 18:43:40 +0100 Subject: [PATCH] Make sure the task description color is opaque --- app/src/main/java/eu/faircode/email/ActivityBase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index 1859c6c274..556eca6575 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -49,6 +49,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.FileProvider; +import androidx.core.graphics.ColorUtils; import androidx.documentfile.provider.DocumentFile; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; @@ -133,7 +134,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc d.setTint(colorActionForeground); d.draw(canvas); - ActivityManager.TaskDescription td = new ActivityManager.TaskDescription(null, bm, colorPrimaryDark); + ActivityManager.TaskDescription td = new ActivityManager.TaskDescription( + null, bm, ColorUtils.setAlphaComponent(colorPrimaryDark, 255)); setTaskDescription(td); boolean navbar_colorize = prefs.getBoolean("navbar_colorize", false);