Bring back app notif dot color

- Closes #3816
This commit is contained in:
MrSluffy
2024-01-30 11:04:31 +08:00
parent 41b3f080e3
commit 329147fb9f
2 changed files with 9 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ import com.android.launcher3.dot.DotInfo;
import com.android.launcher3.dragndrop.DragOptions.PreDragCondition;
import com.android.launcher3.dragndrop.DraggableView;
import com.android.launcher3.folder.FolderIcon;
import com.android.launcher3.graphics.IconPalette;
import com.android.launcher3.graphics.IconShape;
import com.android.launcher3.graphics.PreloadIconDrawable;
import com.android.launcher3.icons.DotRenderer;
@@ -398,7 +399,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
boolean useTheme = shouldUseTheme();
FastBitmapDrawable iconDrawable = info.newIcon(getContext(), useTheme);
mDotParams.appColor = iconDrawable.getIconColor();
mDotParams.color = ColorTokens.DotColor.resolveColor(getContext());
mDotParams.color = IconPalette.getMutedColor(iconDrawable.getIconColor(), 0.54f);
setIcon(iconDrawable);
applyLabel(info);
}