From eeb5bbc9409978cc2ae52d48380399fcde3d9f85 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 13 Nov 2013 15:47:05 -0800 Subject: Use the icon bounds for all calculations. - Fixes a drag and drop issue when the dynamic grid scales icons down, due to the drawable bounds not being equal to their bitmap sizes. Change-Id: If7c68b51131de7bac3195a2619e22340f7789432 --- src/com/android/launcher3/Folder.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/android/launcher3/Folder.java') diff --git a/src/com/android/launcher3/Folder.java b/src/com/android/launcher3/Folder.java index f26d01f5d..7fe83c54d 100644 --- a/src/com/android/launcher3/Folder.java +++ b/src/com/android/launcher3/Folder.java @@ -786,6 +786,11 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList } } + @Override + public float getIntrinsicIconScaleFactor() { + return 1f; + } + @Override public boolean supportsFlingToDelete() { return true; -- cgit v1.2.3