commit | e3887cc4ec3cebda2333298e56a35acb49ccdf13 | [log] [tgz] |
---|---|---|
author | Patrick Dubroy <dubroy@google.com> | Thu Jan 20 10:43:40 2011 -0800 |
committer | Patrick Dubroy <dubroy@google.com> | Thu Jan 20 12:31:29 2011 -0800 |
tree | 3a7800821cc909b18d5a5951db0faee064414ae7 | |
parent | 8d60f2c2046725bce89628ee87032326c2551e46 [diff] [blame] |
Ensure drag outline & crosshairs disappear on drag cancel Change-Id: I165d45846c0bfe74eda0d61b55e5b93fbfccdef2
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index af2f984..02ee950 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java
@@ -1356,9 +1356,7 @@ lp.isDragging = false; lp.dropped = true; lp.animateDrop = animate; - if (animate) { - child.setVisibility(View.INVISIBLE); - } + child.setVisibility(animate ? View.INVISIBLE : View.VISIBLE); child.requestLayout(); } }