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

Make sure the task description color is opaque

This commit is contained in:
M66B 2021-10-31 18:43:40 +01:00
parent 6622a9b2b6
commit b8ba59160f

View file

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