Using a negative flag for icon notmalization

am: 531cda693d

* commit '531cda693d07eba9dce6b793848749acaf28c0fd':
  Using a negative flag for icon notmalization
This commit is contained in:
Sunny Goyal
2016-03-03 21:44:06 +00:00
committed by android-build-merger
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -803,7 +803,7 @@ public class IconCache {
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";
+2 -2
View File
@@ -223,8 +223,8 @@ public final class Utilities {
@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)) {
@@ -32,8 +32,8 @@ public final class FeatureFlags {
// 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;
+2 -2
View File
@@ -470,8 +470,8 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
@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);
}
/**