diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-19 15:06:50 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-19 15:06:50 +0200 |
commit | 3b79cc2f23617903dda1876f80fd295d45e9ba3b (patch) | |
tree | ae346f109c9a0b96890d8769be0bccca5dbfc2af /src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java | |
parent | d74692e0a582edc7d9701f58d19ca812a39096bc (diff) |
better error display and additional infos (stats) for the edit account activity
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java b/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java index 040e6266..d286052c 100644 --- a/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java +++ b/src/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java @@ -23,7 +23,10 @@ public class KnownHostsAdapter extends ArrayAdapter<String> { } } else if (split.length == 2) { for (String domain : domains) { - if (domain.contains(split[1])) { + if (domain.contentEquals(split[1])) { + suggestions.clear(); + break; + } else if (domain.contains(split[1])) { suggestions.add(split[0].toLowerCase(Locale.getDefault()) + "@" + domain); } } |