mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 05:55:06 -05:00
251428e963
The unread/flagged count/view for accounts now excludes special folders and only includes displayable folders as specified by the display class.
23 lines
494 B
Java
23 lines
494 B
Java
package com.fsck.k9.helper;
|
|
|
|
public final class StringUtils {
|
|
|
|
public static boolean isNullOrEmpty(String string){
|
|
return string == null || string.length() == 0;
|
|
}
|
|
|
|
public static boolean containsAny(String haystack, String[] needles) {
|
|
if (haystack == null) {
|
|
return false;
|
|
}
|
|
|
|
for (String needle : needles) {
|
|
if (haystack.contains(needle)) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|