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

Commit fa6322ba authored by Saumya Prakash's avatar Saumya Prakash
Browse files

Remove unused method to change icon background color

Since taskbar and launcher hotseat icons are now the same background
color we don't need the method that it used to use to switch between the
two. (This method was only used in that one place)

Fix: 323952706
Test: Turn on themed icons and dark mode. Compare app icons in taskbar
and in hotseat
Flag: N/A

Change-Id: Ie82073fd1173c464f873a55fd23fad0d9b26cba0
parent 16506fef
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -15,16 +15,12 @@
 */
package com.android.launcher3.icons;

import static android.content.res.Configuration.UI_MODE_NIGHT_MASK;
import static android.content.res.Configuration.UI_MODE_NIGHT_YES;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BlendMode;
import android.graphics.BlendModeColorFilter;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Rect;
@@ -93,13 +89,6 @@ public class ThemedIconDrawable extends FastBitmapDrawable {
        return new ThemedConstantState(bitmapInfo, colorBg, colorFg);
    }

    public void changeBackgroundColor(int colorBg) {
        if (mIsDisabled) return;

        mBgPaint.setColorFilter(new BlendModeColorFilter(colorBg, BlendMode.SRC_IN));
        invalidateSelf();
    }

    static class ThemedConstantState extends FastBitmapConstantState {

        final BitmapInfo bitmapInfo;