From 808d713a9a2ae38960cd720c75ea276053c4399e Mon Sep 17 00:00:00 2001 From: Jin Cao Date: Sun, 24 Aug 2014 11:13:02 -0700 Subject: 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 --- src/com/android/ex/chips/RecipientEditTextView.java | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3