diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Contact.java | 12 | ||||
-rw-r--r-- | src/main/res/drawable-hdpi/ic_activity.png | bin | 3040 -> 0 bytes | |||
-rw-r--r-- | src/main/res/drawable-hdpi/ic_launcher.png | bin | 4416 -> 5190 bytes | |||
-rw-r--r-- | src/main/res/drawable-mdpi/ic_activity.png | bin | 1854 -> 0 bytes | |||
-rw-r--r-- | src/main/res/drawable-mdpi/ic_launcher.png | bin | 2726 -> 3057 bytes | |||
-rw-r--r-- | src/main/res/drawable-xhdpi/ic_activity.png | bin | 4349 -> 0 bytes | |||
-rw-r--r-- | src/main/res/drawable-xhdpi/ic_launcher.png | bin | 6503 -> 7477 bytes | |||
-rw-r--r-- | src/main/res/drawable-xxhdpi/ic_activity.png | bin | 7209 -> 0 bytes | |||
-rw-r--r-- | src/main/res/drawable-xxhdpi/ic_launcher.png | bin | 11054 -> 12738 bytes |
9 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Contact.java b/src/main/java/eu/siacs/conversations/entities/Contact.java index 99a749072..0b6c900a1 100644 --- a/src/main/java/eu/siacs/conversations/entities/Contact.java +++ b/src/main/java/eu/siacs/conversations/entities/Contact.java @@ -149,7 +149,17 @@ public class Contact implements ListItem { return true; } needle = needle.toLowerCase(); - return jid.toString().contains(needle) || getDisplayName().toLowerCase().contains(needle) || matchInTag(needle); + String[] parts = needle.split("\\s+"); + if (parts.length > 1) { + for(int i = 0; i < parts.length; ++i) { + if (!match(parts[i])) { + return false; + } + } + return true; + } else { + return jid.toString().contains(needle) || getDisplayName().toLowerCase().contains(needle) || matchInTag(needle); + } } private boolean matchInTag(String needle) { diff --git a/src/main/res/drawable-hdpi/ic_activity.png b/src/main/res/drawable-hdpi/ic_activity.png Binary files differdeleted file mode 100644 index 613da683a..000000000 --- a/src/main/res/drawable-hdpi/ic_activity.png +++ /dev/null diff --git a/src/main/res/drawable-hdpi/ic_launcher.png b/src/main/res/drawable-hdpi/ic_launcher.png Binary files differindex d48df2c38..88c4dba28 100644 --- a/src/main/res/drawable-hdpi/ic_launcher.png +++ b/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/src/main/res/drawable-mdpi/ic_activity.png b/src/main/res/drawable-mdpi/ic_activity.png Binary files differdeleted file mode 100644 index c8727f572..000000000 --- a/src/main/res/drawable-mdpi/ic_activity.png +++ /dev/null diff --git a/src/main/res/drawable-mdpi/ic_launcher.png b/src/main/res/drawable-mdpi/ic_launcher.png Binary files differindex 200daf4c9..c366d920a 100644 --- a/src/main/res/drawable-mdpi/ic_launcher.png +++ b/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/src/main/res/drawable-xhdpi/ic_activity.png b/src/main/res/drawable-xhdpi/ic_activity.png Binary files differdeleted file mode 100644 index 95ffbecf9..000000000 --- a/src/main/res/drawable-xhdpi/ic_activity.png +++ /dev/null diff --git a/src/main/res/drawable-xhdpi/ic_launcher.png b/src/main/res/drawable-xhdpi/ic_launcher.png Binary files differindex 927a2d2a5..f8fd9f569 100644 --- a/src/main/res/drawable-xhdpi/ic_launcher.png +++ b/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/src/main/res/drawable-xxhdpi/ic_activity.png b/src/main/res/drawable-xxhdpi/ic_activity.png Binary files differdeleted file mode 100644 index 0b642d9bb..000000000 --- a/src/main/res/drawable-xxhdpi/ic_activity.png +++ /dev/null diff --git a/src/main/res/drawable-xxhdpi/ic_launcher.png b/src/main/res/drawable-xxhdpi/ic_launcher.png Binary files differindex 65c1af343..9a10d949a 100644 --- a/src/main/res/drawable-xxhdpi/ic_launcher.png +++ b/src/main/res/drawable-xxhdpi/ic_launcher.png |