diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 1156e15ddff9d..9537ba0fa07e7 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -18,6 +18,7 @@ package android.widget; import android.content.Context; import android.content.res.TypedArray; +import android.database.DataSetObserver; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.text.Editable; @@ -129,10 +130,11 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe private boolean mBlockCompletion; - private AutoCompleteTextView.ListSelectorHider mHideSelector; + private ListSelectorHider mHideSelector; private Runnable mShowDropDownRunnable; - private AutoCompleteTextView.PassThroughClickListener mPassThroughClickListener; + private PassThroughClickListener mPassThroughClickListener; + private PopupDataSetObserver mObserver; public AutoCompleteTextView(Context context) { this(context, null); @@ -217,14 +219,6 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe } } - /** - * Sets this to be single line; a separate method so - * MultiAutoCompleteTextView can skip this. - */ - /* package */ void finishInit() { - setSingleLine(); - } - /** *
Sets the optional hint text that is displayed at the bottom of the
* the matching list. This can be used as a cue to the user on how to
@@ -448,7 +442,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
public boolean isDropDownDismissedOnCompletion() {
return mDropDownDismissedOnCompletion;
}
-
+
/**
* Sets whether the drop-down is dismissed when a suggestion is clicked. This is
* true by default.
@@ -590,10 +584,16 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
* @see android.widget.ListAdapter
*/
public Starts filtering the content of the drop down list. The filtering
* pattern is the content of the edit box. Subclasses should override this
@@ -976,25 +966,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
mBlockCompletion = false;
}
}
-
- /**
- * Like {@link #setTextKeepState(CharSequence)}, except that it can disable filtering.
- *
- * @param filter If Performs the text completion by replacing the current text by the
* selected item. Subclasses should override this method to avoid replacing
@@ -1523,24 +1495,6 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
return view;
}
- /**
- * Returns the top padding of the currently selected view. Returns the bottom padding of the currently selected view.false, no filtering will be performed
- * as a result of this call.
- *
- * @hide Pending API council approval.
- */
- public void setTextKeepState(CharSequence text, boolean filter) {
- if (filter) {
- setTextKeepState(text);
- } else {
- mBlockCompletion = true;
- setTextKeepState(text);
- mBlockCompletion = false;
- }
- }
-
+
/**
*