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

Commit 8542e57a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing ClockBitmapInfo not setting theme flag correctly" into main

parents f6d09518 eaf2962b
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 {