diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 12:15:53 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-09 12:15:55 +0200 |
commit | 992df11aa2c82f8dbfdabd39eff065cbe75f6df1 (patch) | |
tree | 3747cce96b68b605b2be1107b94218bf2f84f6c0 /main/src/cgeo/geocaching/apps/cachelist | |
parent | 57074a76937412d57d0260449edee47e016bc510 (diff) | |
download | cgeo-992df11aa2c82f8dbfdabd39eff065cbe75f6df1.zip cgeo-992df11aa2c82f8dbfdabd39eff065cbe75f6df1.tar.gz cgeo-992df11aa2c82f8dbfdabd39eff065cbe75f6df1.tar.bz2 |
Use isEmpty() and isNotEmpty() from CollectionUtils
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cachelist')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cachelist/LocusCacheListApp.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/apps/cachelist/LocusCacheListApp.java b/main/src/cgeo/geocaching/apps/cachelist/LocusCacheListApp.java index c08122a..e4afc31 100644 --- a/main/src/cgeo/geocaching/apps/cachelist/LocusCacheListApp.java +++ b/main/src/cgeo/geocaching/apps/cachelist/LocusCacheListApp.java @@ -4,6 +4,8 @@ import cgeo.geocaching.cgCache; import cgeo.geocaching.cgGeo; import cgeo.geocaching.apps.AbstractLocusApp; +import org.apache.commons.collections.CollectionUtils; + import android.app.Activity; import android.content.res.Resources; @@ -25,7 +27,7 @@ class LocusCacheListApp extends AbstractLocusApp implements CacheListApp { @Override public boolean invoke(cgGeo geo, List<cgCache> cacheList, Activity activity, Resources res, final UUID searchId) { - if (cacheList == null || cacheList.isEmpty()) + if (CollectionUtils.isEmpty(cacheList)) return false; showInLocus((List<? extends Object>) cacheList, false, activity); |