Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 415b46c3 authored by Kenny Root's avatar Kenny Root Committed by Android (Google) Code Review
Browse files

Merge "Ensure adapter is not null in AutoCompleteTextView"

parents 4d9840bf 7254afd4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1629,7 +1629,10 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
                // of iterating throught he list of observers.
                post(new Runnable() {
                    public void run() {
                        updateDropDownForFilter(mAdapter.getCount());
                        final ListAdapter adapter = mAdapter;
                        if (adapter != null) {
                            updateDropDownForFilter(adapter.getCount());
                        }
                    }
                });
            }