|
|
|
|
@ -393,9 +393,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
boolean task_description = prefs.getBoolean("task_description", true);
|
|
|
|
|
int colorPrimary = (task_description
|
|
|
|
|
? Helper.resolveColor(this, androidx.appcompat.R.attr.colorPrimaryDark)
|
|
|
|
|
: getColor(R.color.lightBluePrimary));
|
|
|
|
|
if (task_description) {
|
|
|
|
|
int 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);
|
|
|
|
|
@ -416,6 +415,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|
|
|
|
ActivityManager.TaskDescription td = new ActivityManager.TaskDescription(
|
|
|
|
|
null, bm, colorPrimary);
|
|
|
|
|
setTaskDescription(td);
|
|
|
|
|
}
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
}
|
|
|
|
|
|