diff options
author | Michael Jurka <mikejurka@google.com> | 2011-01-14 14:19:57 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-01-14 14:48:22 -0800 |
commit | 0ea4000b632759839c205f65d258036db1cc1bdb (patch) | |
tree | a62fad1563a569b86766dec13fed0fc7999ab099 /src/com/android/launcher2/CellLayout.java | |
parent | c5b262ccf639fedac2aff5bb8238342f95396338 (diff) | |
download | android_packages_apps_Trebuchet-0ea4000b632759839c205f65d258036db1cc1bdb.tar.gz android_packages_apps_Trebuchet-0ea4000b632759839c205f65d258036db1cc1bdb.tar.bz2 android_packages_apps_Trebuchet-0ea4000b632759839c205f65d258036db1cc1bdb.zip |
Fix bug: new items were invisible when added in spring-loaded mode
Change-Id: Ic28f8c83de0f7097d642a2f162e0ee2a91649807
Diffstat (limited to 'src/com/android/launcher2/CellLayout.java')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 19e775b2d..c68dcc538 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -1390,7 +1390,9 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged lp.isDragging = false; lp.dropped = true; lp.animateDrop = animate; - child.setVisibility(View.INVISIBLE); + if (animate) { + child.setVisibility(View.INVISIBLE); + } child.requestLayout(); } } |