fixed #728
This commit is contained in:
parent
6a429d9939
commit
9dd445a507
|
@ -60,11 +60,8 @@ public class KnownHostsAdapter extends ArrayAdapter<String> {
|
||||||
|
|
||||||
public KnownHostsAdapter(Context context, int viewResourceId,
|
public KnownHostsAdapter(Context context, int viewResourceId,
|
||||||
List<String> mKnownHosts) {
|
List<String> mKnownHosts) {
|
||||||
super(context, viewResourceId, mKnownHosts);
|
super(context, viewResourceId, new ArrayList<String>());
|
||||||
domains = new ArrayList<String>(mKnownHosts.size());
|
domains = new ArrayList<String>(mKnownHosts);
|
||||||
for (String domain : mKnownHosts) {
|
|
||||||
domains.add(new String(domain));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue