diff options
| author | Romain Guy <romainguy@android.com> | 2010-01-06 18:48:08 -0800 |
|---|---|---|
| committer | Romain Guy <romainguy@android.com> | 2010-01-06 18:48:08 -0800 |
| commit | 21875052adddf2b52bc57fea62bf097b8aa04cbf (patch) | |
| tree | 4e21422f35bc1b5305ded8e94fc536dc2f35a9e5 /core/java/android/widget/AutoCompleteTextView.java | |
| parent | 3e7b44fade95848a717b0f4d1b7365ce72e885ed (diff) | |
Fix two ListView bugs related to onAttachedToWindow/onDetachedFromWindow.
Bug: #2359368.
onDetachedFromWindow() would never be called for views living in the scrap heap, but onAttachedToWindow() could be called several times for views recycled from the scrap heap.
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
| -rw-r--r-- | core/java/android/widget/AutoCompleteTextView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index ce985e3bcd7b..b455d472eb67 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -1485,8 +1485,8 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe * @return the view for the specified item */ @Override - protected View obtainView(int position) { - View view = super.obtainView(position); + View obtainView(int position, boolean[] isScrap) { + View view = super.obtainView(position, isScrap); if (view instanceof TextView) { ((TextView) view).setHorizontallyScrolling(true); |
