commit | 2313eff05b8f52e72ebe06c589c419941fa019d6 | [log] [tgz] |
---|---|---|
author | Patrick Dubroy <dubroy@google.com> | Tue Jan 11 20:01:31 2011 -0800 |
committer | Patrick Dubroy <dubroy@google.com> | Fri Jan 14 14:50:47 2011 -0800 |
tree | 4adc09f24721db794e031f4ff49989dc6d4bde5f | |
parent | eb3d6dbb2e83494919a74c62f6b89806ecc25330 [diff] [blame] |
Allow previous view hierarchy to be GC'ed more quickly on rotation Change-Id: I76215a48e76234501b7ce253dedfa449502ab88f
diff --git a/src/com/android/launcher2/PagedViewWithDraggableItems.java b/src/com/android/launcher2/PagedViewWithDraggableItems.java index f24d7e0..3f72292 100644 --- a/src/com/android/launcher2/PagedViewWithDraggableItems.java +++ b/src/com/android/launcher2/PagedViewWithDraggableItems.java
@@ -150,4 +150,10 @@ public void setDragSlopeThreshold(float dragSlopeThreshold) { mDragSlopeThreshold = dragSlopeThreshold; } + + @Override + protected void onDetachedFromWindow() { + mLastTouchedItem = null; + super.onDetachedFromWindow(); + } }