utils: Removed dependency on android.text.TextUtils.

Depending upon android.text.TextUtils for simply checking if a string is empty seems unnecessary and makes unit testing harder.

Signed-off-by: ardevd <edvard.holst@gmail.com>
This commit is contained in:
ardevd 2019-04-03 09:46:10 +02:00
parent 479a0558aa
commit 1c92e8c88b
No known key found for this signature in database
GPG key ID: C30729EE3C9A3CCE

View file

@ -20,7 +20,6 @@
package com.owncloud.android.utils;
import android.text.TextUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@ -38,7 +37,7 @@ public final class StringUtils {
public static String searchAndColor(String text, String searchText, @ColorInt int color) {
if (TextUtils.isEmpty(text) || TextUtils.isEmpty(searchText)) {
if (text.isEmpty() || searchText.isEmpty()) {
return text;
}