From 8682116e2ddccee65abfe95f51a5509e999f6a57 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 28 Mar 2016 14:23:34 -0700 Subject: [PATCH] Changing the scale factor for square icons Bug: 18245189 Change-Id: Iab0074c76083480a2a7316f5563fc48154de6355 --- src/com/android/launcher3/IconCache.java | 2 +- src/com/android/launcher3/util/IconNormalizer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java index 9ed42f71a6..effecaf062 100644 --- a/src/com/android/launcher3/IconCache.java +++ b/src/com/android/launcher3/IconCache.java @@ -802,7 +802,7 @@ public class IconCache { } private static final class IconDB extends SQLiteCacheHelper { - private final static int DB_VERSION = 8; + private final static int DB_VERSION = 9; private final static int RELEASE_VERSION = DB_VERSION + (FeatureFlags.LAUNCHER3_DISABLE_ICON_NORMALIZATION ? 0 : 1); diff --git a/src/com/android/launcher3/util/IconNormalizer.java b/src/com/android/launcher3/util/IconNormalizer.java index 001cac0f0e..4087d7bcf5 100644 --- a/src/com/android/launcher3/util/IconNormalizer.java +++ b/src/com/android/launcher3/util/IconNormalizer.java @@ -28,7 +28,7 @@ import java.nio.ByteBuffer; public class IconNormalizer { // Ratio of icon visible area to full icon size for a square shaped icon - private static final float MAX_SQUARE_AREA_FACTOR = 359.0f / 576; + private static final float MAX_SQUARE_AREA_FACTOR = 375.0f / 576; // Ratio of icon visible area to full icon size for a circular shaped icon private static final float MAX_CIRCLE_AREA_FACTOR = 380.0f / 576;