aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-09-17 16:20:03 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-09-17 16:20:03 -0700
commitc6e49fa348769e0e971434674618b929543c7520 (patch)
treee996bd3166091d63a059c0c2ad8347154d7a3e77
parent04768b0e6556ce0c6ccdf8d914cb028df9bf0ba7 (diff)
downloaddsub-c6e49fa348769e0e971434674618b929543c7520.tar.gz
dsub-c6e49fa348769e0e971434674618b929543c7520.tar.bz2
dsub-c6e49fa348769e0e971434674618b929543c7520.zip
isEmpty is not defined until Android 2.3
-rw-r--r--src/github/daneren2005/dsub/util/Util.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index 587bd2b8..f7dbb8bd 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -761,8 +761,8 @@ public final class Util {
}
}
- public static boolean isNullOrWhiteSpace(String string) {
- return string == null || string.isEmpty() || string.trim().isEmpty();
+ public static boolean isNullOrWhiteSpace(String string) {
+ return string == null || "".equals(string) || "".equals(string.trim());
}
public static boolean isNetworkConnected(Context context) {