From 0ea4000b632759839c205f65d258036db1cc1bdb Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 14 Jan 2011 14:19:57 -0800 Subject: [PATCH] Fix bug: new items were invisible when added in spring-loaded mode Change-Id: Ic28f8c83de0f7097d642a2f162e0ee2a91649807 --- src/com/android/launcher2/CellLayout.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 19e775b2d0..c68dcc538d 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(); } }