summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Utilities.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-06-19 12:41:22 -0700
committerWinson Chung <winsonc@google.com>2011-06-22 17:26:02 -0700
commit4b825dcd5f64a5ebb60271844fbc5257374422bc (patch)
treebc3889079d484952e71bce46f3c47e78d8f40282 /src/com/android/launcher2/Utilities.java
parent547eeb3b3e99b79fdab3b74d4e536dc014d0fb0e (diff)
downloadandroid_packages_apps_Trebuchet-4b825dcd5f64a5ebb60271844fbc5257374422bc.tar.gz
android_packages_apps_Trebuchet-4b825dcd5f64a5ebb60271844fbc5257374422bc.tar.bz2
android_packages_apps_Trebuchet-4b825dcd5f64a5ebb60271844fbc5257374422bc.zip
Tweaking launcher grid and spacing.
Change-Id: I369a87f473d1e870b2f819221f6383aab340b067
Diffstat (limited to 'src/com/android/launcher2/Utilities.java')
-rw-r--r--src/com/android/launcher2/Utilities.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java
index 04abd77aa..775833391 100644
--- a/src/com/android/launcher2/Utilities.java
+++ b/src/com/android/launcher2/Utilities.java
@@ -114,7 +114,7 @@ final class Utilities {
width = (int) (height * ratio);
}
} else if (sourceWidth < width && sourceHeight < height) {
- // It's small, use the size they gave us.
+ // Don't scale up the icon
width = sourceWidth;
height = sourceHeight;
}
@@ -224,7 +224,7 @@ final class Utilities {
if (LauncherApplication.isScreenLarge()) {
sIconContentSize = (int) resources.getDimension(R.dimen.app_icon_content_size);
}
- sIconTextureWidth = sIconTextureHeight = sIconWidth + 2;
+ sIconTextureWidth = sIconTextureHeight = sIconWidth;
sBlurPaint.setMaskFilter(new BlurMaskFilter(5 * density, BlurMaskFilter.Blur.NORMAL));
sGlowColorPressedPaint.setColor(0xffffc300);