1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 09:16:00 +00:00

Fixed task icon color

This commit is contained in:
M66B 2024-05-30 23:43:21 +02:00
parent ade60c608b
commit 598ec7724d

View file

@ -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);