diff options
| author | Jin Cao <jinyan@google.com> | 2014-08-24 11:13:02 -0700 |
|---|---|---|
| committer | Jin Cao <jinyan@google.com> | 2014-08-24 11:13:02 -0700 |
| commit | 808d713a9a2ae38960cd720c75ea276053c4399e (patch) | |
| tree | 89b2431b986a4aa33199cb197823574ac1e113d3 | |
| parent | 3b43c09faf6126ec8e4a49ffdcbfde69a9cded78 (diff) | |
| download | android_frameworks_opt_chips-808d713a9a2ae38960cd720c75ea276053c4399e.tar.gz android_frameworks_opt_chips-808d713a9a2ae38960cd720c75ea276053c4399e.tar.bz2 android_frameworks_opt_chips-808d713a9a2ae38960cd720c75ea276053c4399e.zip | |
DO NOT MERGE prevent popup view leaks
When the RecipientEditTextView is detached from the window,
make sure that we also dismiss any remaining popup to prevent
the view from being leaked.
Change-Id: I98028fcfc68b4114ee5c76d0b7797784434a42a7
| -rw-r--r-- | src/com/android/ex/chips/RecipientEditTextView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java index 2c70216..b4fe14b 100644 --- a/src/com/android/ex/chips/RecipientEditTextView.java +++ b/src/com/android/ex/chips/RecipientEditTextView.java @@ -326,6 +326,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements protected void onDetachedFromWindow() { super.onDetachedFromWindow(); mAttachedToWindow = false; + dismissPopups(); } @Override |
