Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae12dae1 authored by Winson Chung's avatar Winson Chung
Browse files

Fixing regression with black task bar background. (Bug 17584337)

Change-Id: Ieaa2defa4997ffc8851832c18dfe84e561ffedb5
parent 51a400eb
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ public class ActivityManager {
        public TaskDescription(TaskDescription td) {
            mLabel = td.mLabel;
            mIcon = td.mIcon;
            setPrimaryColor(td.mColorPrimary);
            mColorPrimary = td.mColorPrimary;
            mIconFilename = td.mIconFilename;
        }

@@ -600,7 +600,11 @@ public class ActivityManager {
         * @hide
         */
        public void setPrimaryColor(int primaryColor) {
            mColorPrimary = 0xFF000000 | primaryColor;
            // Ensure that the given color is valid
            if ((primaryColor != 0) && (Color.alpha(primaryColor) != 255)) {
                throw new RuntimeException("A TaskDescription's primary color should be opaque");
            }
            mColorPrimary = primaryColor;
        }

        /**