diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-12-19 08:46:52 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-12-19 08:46:52 +0100 |
commit | 13f406f1d3165496ccc713dc797ed40b33727ba7 (patch) | |
tree | cbe65f4ed8ea7ab9ef06a4ce073614029c8762fa /main/src/cgeo/geocaching/VisitCacheActivity.java | |
parent | dd59146e7197c32869971a02474e1107f8dc515b (diff) | |
download | cgeo-13f406f1d3165496ccc713dc797ed40b33727ba7.zip cgeo-13f406f1d3165496ccc713dc797ed40b33727ba7.tar.gz cgeo-13f406f1d3165496ccc713dc797ed40b33727ba7.tar.bz2 |
Fix: do not use String#isEmpty()
String#isEmpty() has been introduced on SDK API 9 only. For earlier
versions of Android, StringUtils.isEmpty/isNotEmpty can be used instead.
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
-rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index 7685496..8f2c79a 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -717,7 +717,7 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD // Do not erase the saved log if the user has removed all the characters // without using "Clear". This may be a manipulation mistake, and erasing // again will be easy using "Clear" while retyping the text may not be. - if (force || (!log.isEmpty() && !StringUtils.equals(log, text))) { + if (force || (StringUtils.isNotEmpty(log) && !StringUtils.equals(log, text))) { cache.logOffline(this, log, date, typeSelected); } text = log; |