diff options
author | Patrick Dubroy <dubroy@google.com> | 2011-01-20 10:43:40 -0800 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2011-01-20 12:31:29 -0800 |
commit | e3887cc4ec3cebda2333298e56a35acb49ccdf13 (patch) | |
tree | 3a7800821cc909b18d5a5951db0faee064414ae7 /src/com/android/launcher2/CellLayout.java | |
parent | 8d60f2c2046725bce89628ee87032326c2551e46 (diff) | |
download | android_packages_apps_Trebuchet-e3887cc4ec3cebda2333298e56a35acb49ccdf13.tar.gz android_packages_apps_Trebuchet-e3887cc4ec3cebda2333298e56a35acb49ccdf13.tar.bz2 android_packages_apps_Trebuchet-e3887cc4ec3cebda2333298e56a35acb49ccdf13.zip |
Ensure drag outline & crosshairs disappear on drag cancel
Change-Id: I165d45846c0bfe74eda0d61b55e5b93fbfccdef2
Diffstat (limited to 'src/com/android/launcher2/CellLayout.java')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index af2f984b4..02ee950f9 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -1356,9 +1356,7 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged lp.isDragging = false; lp.dropped = true; lp.animateDrop = animate; - if (animate) { - child.setVisibility(View.INVISIBLE); - } + child.setVisibility(animate ? View.INVISIBLE : View.VISIBLE); child.requestLayout(); } } |