aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/VisitCacheActivity.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-12-18 22:09:03 +0100
committerSamuel Tardieu <sam@rfc1149.net>2012-12-18 22:09:03 +0100
commitdfa622b179876ce94b3eb74c8623b4451adbbfd9 (patch)
tree2c8f22a7b120d07f6f1656dbb53b47edfa5d57a6 /main/src/cgeo/geocaching/VisitCacheActivity.java
parent5368032229c7695acb499f0461b97c2ad359b7ff (diff)
downloadcgeo-dfa622b179876ce94b3eb74c8623b4451adbbfd9.zip
cgeo-dfa622b179876ce94b3eb74c8623b4451adbbfd9.tar.gz
cgeo-dfa622b179876ce94b3eb74c8623b4451adbbfd9.tar.bz2
Refactoring: use isEmpty() where appropriate
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
-rw-r--r--main/src/cgeo/geocaching/VisitCacheActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java
index 76018c0..7685496 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.length() > 0 && !StringUtils.equals(log, text))) {
+ if (force || (!log.isEmpty() && !StringUtils.equals(log, text))) {
cache.logOffline(this, log, date, typeSelected);
}
text = log;