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/files | |
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/files')
-rw-r--r-- | main/src/cgeo/geocaching/files/FileList.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/files/FileList.java b/main/src/cgeo/geocaching/files/FileList.java index 770e749..2f810ea 100644 --- a/main/src/cgeo/geocaching/files/FileList.java +++ b/main/src/cgeo/geocaching/files/FileList.java @@ -4,6 +4,7 @@ import cgeo.geocaching.R; import cgeo.geocaching.Settings; import cgeo.geocaching.activity.AbstractListActivity; +import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; @@ -42,7 +43,7 @@ public abstract class FileList<T extends ArrayAdapter<File>> extends AbstractLis @Override public void handleMessage(Message msg) { try { - if (files == null || files.isEmpty()) { + if (CollectionUtils.isEmpty(files)) { if (waitDialog != null) { waitDialog.dismiss(); } |