Skip to content

Commit

Permalink
fix code warning in PreferenceFragment
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Bier <volker.bier@web.de>
  • Loading branch information
vbier committed Oct 24, 2018
1 parent 2fb9800 commit aa17139
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onLoadFinished(Loader<List<String>> loader, List<String> strings) {

if (editText instanceof AutoCompleteTextView) {
AutoCompleteTextView t = (AutoCompleteTextView) editText;
t.setAdapter(new ArrayAdapter(getActivity(), android.R.layout.simple_dropdown_item_1line, strings));
t.setAdapter(new ArrayAdapter<>(getActivity(), android.R.layout.simple_dropdown_item_1line, strings));
}
}
}
Expand Down

0 comments on commit aa17139

Please sign in to comment.