private final static int DB_VERSION = 7;
private final static int RELEASE_VERSION = DB_VERSION +
- (FeatureFlags.LAUNCHER3_ICON_NORMALIZATION ? 1 : 0);
+ (FeatureFlags.LAUNCHER3_DISABLE_ICON_NORMALIZATION ? 0 : 1);
private final static String TABLE_NAME = "icons";
private final static String COLUMN_ROWID = "rowid";
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public static Bitmap createBadgedIconBitmap(
Drawable icon, UserHandleCompat user, Context context) {
- float scale = FeatureFlags.LAUNCHER3_ICON_NORMALIZATION ?
- IconNormalizer.getInstance().getScale(icon) : 1;
+ float scale = FeatureFlags.LAUNCHER3_DISABLE_ICON_NORMALIZATION ?
+ 1 : IconNormalizer.getInstance().getScale(icon);
Bitmap bitmap = createIconBitmap(icon, context, scale);
if (Utilities.ATLEAST_LOLLIPOP && user != null
&& !UserHandleCompat.myUserHandle().equals(user)) {
// Custom flags go below this
// As opposed to the new spring-loaded workspace.
+ public static boolean LAUNCHER3_DISABLE_ICON_NORMALIZATION = false;
public static boolean LAUNCHER3_LEGACY_WORKSPACE_DND = false;
- public static boolean LAUNCHER3_ICON_NORMALIZATION = true;
public static boolean LAUNCHER3_LEGACY_FOLDER_ICON = false;
public static boolean LAUNCHER3_LEGACY_LOGGING = false;
public static boolean LAUNCHER3_USE_SYSTEM_DRAG_DRIVER = false;
@SuppressLint("InflateParams")
static Folder fromXml(Launcher launcher) {
return (Folder) launcher.getLayoutInflater().inflate(
- FeatureFlags.LAUNCHER3_ICON_NORMALIZATION
- ? R.layout.user_folder_icon_normalized : R.layout.user_folder, null);
+ FeatureFlags.LAUNCHER3_DISABLE_ICON_NORMALIZATION
+ ? R.layout.user_folder : R.layout.user_folder_icon_normalized, null);
}
/**