Increasing icons for homescreen as well as as all-apps (temporarily until we get hi-res icons).
- Also fixing spacing in the portrait mode, and using the same styles for both AllApps and workspace icons.
Change-Id: I222dd5d53a39d6940a85f40b57912b69c926ffd0
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 346e472..961acfe 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -992,8 +992,12 @@
View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) {
TextView favorite = (TextView) mInflater.inflate(layoutResId, parent, false);
+ // Temporarily, we are scaling up all shortcuts on the workspace
+ int scaledSize = parent.getResources().getDimensionPixelSize(R.dimen.temp_scaled_icon_size);
+ Bitmap b = Bitmap.createScaledBitmap(info.getIcon(mIconCache), scaledSize, scaledSize, true);
+
favorite.setCompoundDrawablesWithIntrinsicBounds(null,
- new FastBitmapDrawable(info.getIcon(mIconCache)),
+ new FastBitmapDrawable(b),
null, null);
favorite.setText(info.title);
favorite.setTag(info);