mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Apply legacy treatment on all non adaptive icons
Bug: 110123894 Bug: 62372639 Change-Id: I3bcaa3b9886942b4f1d45aaeebc8b8022e1319f8
This commit is contained in:
@@ -801,7 +801,7 @@ public class IconCache {
|
||||
}
|
||||
|
||||
private static final class IconDB extends SQLiteCacheHelper {
|
||||
private final static int RELEASE_VERSION = 22;
|
||||
private final static int RELEASE_VERSION = 23;
|
||||
|
||||
private final static String TABLE_NAME = "icons";
|
||||
private final static String COLUMN_ROWID = "rowid";
|
||||
|
||||
@@ -241,7 +241,8 @@ public class LauncherIcons implements AutoCloseable {
|
||||
private Drawable normalizeAndWrapToAdaptiveIcon(Drawable icon, int iconAppTargetSdk,
|
||||
RectF outIconBounds, float[] outScale) {
|
||||
float scale = 1f;
|
||||
if (Utilities.ATLEAST_OREO && iconAppTargetSdk >= Build.VERSION_CODES.O) {
|
||||
if ((Utilities.ATLEAST_OREO && iconAppTargetSdk >= Build.VERSION_CODES.O) ||
|
||||
Utilities.ATLEAST_P) {
|
||||
boolean[] outShape = new boolean[1];
|
||||
if (mWrapperIcon == null) {
|
||||
mWrapperIcon = mContext.getDrawable(R.drawable.adaptive_icon_drawable_wrapper)
|
||||
|
||||
Reference in New Issue
Block a user