mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 17:26:12 +00:00
Fixed task icon color
This commit is contained in:
parent
ade60c608b
commit
598ec7724d
1 changed files with 2 additions and 3 deletions
|
@ -248,8 +248,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
Window window = getWindow();
|
Window window = getWindow();
|
||||||
getSupportFragmentManager().registerFragmentLifecycleCallbacks(lifecycleCallbacks, true);
|
getSupportFragmentManager().registerFragmentLifecycleCallbacks(lifecycleCallbacks, true);
|
||||||
|
|
||||||
int colorPrimaryDark = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark);
|
|
||||||
|
|
||||||
this.contacts = hasPermission(Manifest.permission.READ_CONTACTS);
|
this.contacts = hasPermission(Manifest.permission.READ_CONTACTS);
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
@ -310,7 +308,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||||
boolean task_description = prefs.getBoolean("task_description", true);
|
boolean task_description = prefs.getBoolean("task_description", true);
|
||||||
int colorPrimary;
|
int colorPrimary;
|
||||||
if (task_description) {
|
if (task_description) {
|
||||||
colorPrimary = colorPrimaryDark;
|
colorPrimary = Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark);
|
||||||
|
;
|
||||||
if (colorPrimary != 0 && Color.alpha(colorPrimary) != 255) {
|
if (colorPrimary != 0 && Color.alpha(colorPrimary) != 255) {
|
||||||
Log.w("Task color primary=" + Integer.toHexString(colorPrimary));
|
Log.w("Task color primary=" + Integer.toHexString(colorPrimary));
|
||||||
colorPrimary = ColorUtils.setAlphaComponent(colorPrimary, 255);
|
colorPrimary = ColorUtils.setAlphaComponent(colorPrimary, 255);
|
||||||
|
|
Loading…
Reference in a new issue