diff options
author | Mike LeBeau <mlebeau@android.com> | 2009-06-11 18:50:27 +0100 |
---|---|---|
committer | Mike LeBeau <mlebeau@android.com> | 2009-06-11 18:50:27 +0100 |
commit | 21373aaef203ef442f435577ce4641c6b1a3030a (patch) | |
tree | fa610ce702a6583dee9508f25cfc03a293c89537 /core/java/android/widget/AutoCompleteTextView.java | |
parent | ec167e672d2723db8ceac4f12bc6a62a0922c546 (diff) | |
parent | 174231d89adf4a01f28e6074eb8f743240400c26 (diff) | |
download | frameworks_base-21373aaef203ef442f435577ce4641c6b1a3030a.zip frameworks_base-21373aaef203ef442f435577ce4641c6b1a3030a.tar.gz frameworks_base-21373aaef203ef442f435577ce4641c6b1a3030a.tar.bz2 |
resolved conflicts for merge of 174231 to master
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
-rw-r--r-- | core/java/android/widget/AutoCompleteTextView.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 58d0074..ff95203 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -123,10 +123,6 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe private AutoCompleteTextView.ListSelectorHider mHideSelector; - // Indicates whether this AutoCompleteTextView is attached to a window or not - // The widget is attached to a window when mAttachCount > 0 - private int mAttachCount; - private AutoCompleteTextView.PassThroughClickListener mPassThroughClickListener; public AutoCompleteTextView(Context context) { @@ -946,7 +942,8 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe /** {@inheritDoc} */ public void onFilterComplete(int count) { - if (mAttachCount <= 0) return; + // Not attached to window, don't update drop-down + if (getWindowVisibility() == View.GONE) return; /* * This checks enoughToFilter() again because filtering requests @@ -985,13 +982,11 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); - mAttachCount++; } @Override protected void onDetachedFromWindow() { dismissDropDown(); - mAttachCount--; super.onDetachedFromWindow(); } |