title: autocompletetextview inside dialog box not showing results
body: <p>I have created separate layout post.xml for dialog box in android. Autocomplete inside xml has following code </p>
  
  <pre><code>    &lt;AutoCompleteTextView
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:hint="choose a subreddit"
          android:id="@+id/subreddit" /&gt;.
  </code></pre>
  
  <p>Open dialog has this code  </p>
  
  <pre><code>    public void alertDialog() {
          final Dialog dialog = new Dialog(this);
          dialog.setContentView(R.layout.post);
          dialog.setTitle("Post");
  
          LayoutInflater inflater = (LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View post = inflater.inflate(R.layout.post, null);
          AutoCompleteTextView  textView = (AutoCompleteTextView)post.findViewById((R.id.subreddit));
  
          String[] subreddits = getResources().getStringArray(R.array.subreddits);
          ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_dropdown_item_1line, subreddits);
          textView.setAdapter(adapter);
          ////Autocomplete
  
          //textView.setThreshold(2);
  
          dialog.show();
  }
  </code></pre>
  
  <p>But AutoCompleteTextView inside dialog box isn't showing autocompleted results.  </p>