commit | 0ea4000b632759839c205f65d258036db1cc1bdb | [log] [tgz] |
---|---|---|
author | Michael Jurka <mikejurka@google.com> | Fri Jan 14 14:19:57 2011 -0800 |
committer | Michael Jurka <mikejurka@google.com> | Fri Jan 14 14:48:22 2011 -0800 |
tree | a62fad1563a569b86766dec13fed0fc7999ab099 | |
parent | c5b262ccf639fedac2aff5bb8238342f95396338 [diff] [blame] |
Fix bug: new items were invisible when added in spring-loaded mode Change-Id: Ic28f8c83de0f7097d642a2f162e0ee2a91649807
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 19e775b..c68dcc5 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java
@@ -1390,7 +1390,9 @@ lp.isDragging = false; lp.dropped = true; lp.animateDrop = animate; - child.setVisibility(View.INVISIBLE); + if (animate) { + child.setVisibility(View.INVISIBLE); + } child.requestLayout(); } }