From 598ec7724dcc81290e6ff1b1176df4f9cc063184 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 30 May 2024 23:43:21 +0200 Subject: [PATCH] Fixed task icon color --- app/src/main/java/eu/faircode/email/ActivityBase.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityBase.java b/app/src/main/java/eu/faircode/email/ActivityBase.java index d05ba08cfb..ce531f9d04 100644 --- a/app/src/main/java/eu/faircode/email/ActivityBase.java +++ b/app/src/main/java/eu/faircode/email/ActivityBase.java @@ -248,8 +248,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc Window window = getWindow(); getSupportFragmentManager().registerFragmentLifecycleCallbacks(lifecycleCallbacks, true); - int colorPrimaryDark = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark); - this.contacts = hasPermission(Manifest.permission.READ_CONTACTS); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); @@ -310,7 +308,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc boolean task_description = prefs.getBoolean("task_description", true); int colorPrimary; if (task_description) { - colorPrimary = colorPrimaryDark; + colorPrimary = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark); + ; if (colorPrimary != 0 && Color.alpha(colorPrimary) != 255) { Log.w("Task color primary=" + Integer.toHexString(colorPrimary)); colorPrimary = ColorUtils.setAlphaComponent(colorPrimary, 255);