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

Commit eaf2962b authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing ClockBitmapInfo not setting theme flag correctly

Bug: 381897614
Test: Verified on device
Flag: com.android.launcher3.extendible_theme_manager
Change-Id: Ic4666271e234a23f686eeb4d70024e7f73a7d300
parent 68b218bb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.launcher3.icons;

import static com.android.launcher3.icons.IconProvider.ATLEAST_T;
import static com.android.launcher3.icons.cache.CacheLookupFlag.DEFAULT_LOOKUP_FLAG;

import android.annotation.TargetApi;
import android.content.Context;
@@ -40,6 +41,7 @@ import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;

import com.android.launcher3.icons.cache.CacheLookupFlag;
import com.android.launcher3.icons.mono.ThemedIconDrawable;

import java.util.Calendar;
@@ -323,6 +325,11 @@ public class ClockDrawableWrapper extends AdaptiveIconDrawable implements Bitmap
            return copyInternalsTo(new ClockBitmapInfo(icon, color, 1 - 2 * boundsOffset, animInfo,
                    mFlattenedBackground, themeData, themeBackground));
        }

        @Override
        public CacheLookupFlag getMatchingLookupFlag() {
            return DEFAULT_LOOKUP_FLAG.withThemeIcon(themeData != null);
        }
    }

    private static class ClockIconDrawable extends FastBitmapDrawable implements Runnable {