resolved conflicts for merge of 174231 to master
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user