commit
1927a3d99c
|
@ -47,11 +47,11 @@ public class KnownHostsAdapter extends ArrayAdapter<String> {
|
||||||
@Override
|
@Override
|
||||||
protected void publishResults(CharSequence constraint,
|
protected void publishResults(CharSequence constraint,
|
||||||
FilterResults results) {
|
FilterResults results) {
|
||||||
ArrayList<String> filteredList = (ArrayList<String>) results.values;
|
ArrayList filteredList = (ArrayList)results.values;
|
||||||
if (results != null && results.count > 0) {
|
if (results != null && results.count > 0) {
|
||||||
clear();
|
clear();
|
||||||
for (String c : filteredList) {
|
for (Object c : filteredList) {
|
||||||
add(c);
|
add((String)c);
|
||||||
}
|
}
|
||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
@ -71,4 +71,4 @@ public class KnownHostsAdapter extends ArrayAdapter<String> {
|
||||||
public Filter getFilter() {
|
public Filter getFilter() {
|
||||||
return domainFilter;
|
return domainFilter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue