diff options
author | Patrick Dubroy <dubroy@google.com> | 2011-01-13 17:55:37 -0800 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2011-01-14 14:13:31 -0800 |
commit | ec84c3a189e4aa70aa6ea8ba712e5a4f260a153b (patch) | |
tree | be5f82da1bec89ee491154bbc001bc8523e3b531 /core/java/android/widget/AdapterViewAnimator.java | |
parent | 2150553dc374204a1cb3033ed3fa65c2f22dd5e7 (diff) | |
download | frameworks_base-ec84c3a189e4aa70aa6ea8ba712e5a4f260a153b.zip frameworks_base-ec84c3a189e4aa70aa6ea8ba712e5a4f260a153b.tar.gz frameworks_base-ec84c3a189e4aa70aa6ea8ba712e5a4f260a153b.tar.bz2 |
Allow old view hierarchy to be GC'ed more quickly during rotation.
Diffstat (limited to 'core/java/android/widget/AdapterViewAnimator.java')
-rw-r--r-- | core/java/android/widget/AdapterViewAnimator.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/widget/AdapterViewAnimator.java b/core/java/android/widget/AdapterViewAnimator.java index ec8e93c..1b39371 100644 --- a/core/java/android/widget/AdapterViewAnimator.java +++ b/core/java/android/widget/AdapterViewAnimator.java @@ -986,4 +986,10 @@ public abstract class AdapterViewAnimator extends AdapterView<Adapter> public void willBeAdvancedByHost() { } + + @Override + protected void onDetachedFromWindow() { + mAdapter = null; + super.onDetachedFromWindow(); + } } |