title: AutoCompleteTextView - Suggestions auto-close when `notifyDataSetChanged` called
body: <p>I created adapter and created filter. The adapter works fine but every time when I'm calling to notifyDataSetChanged the dropdown list of the AutoCompleteTextView closed and then reopens again with new suggestions.</p>
  
  <p>Is there any way to avoid this closing and re-opening of the dropdown? </p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>class MyAdapter extends ArrayAdapter&lt;String&gt; {
  
      private static final Filter NO_FILTER = new NoFilter();
  
      private final Handler mHandler = new Handler();
  
      public MyAdapter(Context context, int textViewResourceId) {
          super(context, textViewResourceId);
      }
  
      public void updateList(String prefix) {
          List&lt;String&gt; list = ...; //from web server;
  
          clear();
          foreach (String s : list)
              add(s);
          notifyDataSetChanged();
      }
  
  
      @Override
      public Filter getFilter() {
          return NO_FILTER;
      }
  
  
      private static class NoFilter extends Filter {
          @Override
          protected FilterResults performFiltering(CharSequence prefix) {
              return new FilterResults();
          }
  
          @Override
          protected void publishResults(CharSequence constraint, FilterResults results) {
          }
      }
  }
  </code></pre>