aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/ui/adapter
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-12-01 12:33:57 +0100
committeriNPUTmice <daniel@gultsch.de>2014-12-01 12:33:57 +0100
commit9dd445a50750c3518fa94116f31c2b9e6184d55c (patch)
treeff9807967e863da73469ed3c2bfcdbd478b9ef3d /src/main/java/eu/siacs/conversations/ui/adapter
parent6a429d9939d57b95052ccdeaaf8964e2b7ea69ef (diff)
fixed #728
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/adapter')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java
index 143dfda1..0993735f 100644
--- a/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java
+++ b/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java
@@ -60,11 +60,8 @@ public class KnownHostsAdapter extends ArrayAdapter<String> {
public KnownHostsAdapter(Context context, int viewResourceId,
List<String> mKnownHosts) {
- super(context, viewResourceId, mKnownHosts);
- domains = new ArrayList<String>(mKnownHosts.size());
- for (String domain : mKnownHosts) {
- domains.add(new String(domain));
- }
+ super(context, viewResourceId, new ArrayList<String>());
+ domains = new ArrayList<String>(mKnownHosts);
}
@Override