aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-16 13:43:25 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-16 13:51:50 +0200
commitd9505ffab25f265faa37bcae664db50c8d2763ac (patch)
tree34e8d219496e3369ca0b4f3619629e63e48df12d /main/src
parent0b8800684da10f1b66e56deaa14d21905b289896 (diff)
downloadcgeo-d9505ffab25f265faa37bcae664db50c8d2763ac.zip
cgeo-d9505ffab25f265faa37bcae664db50c8d2763ac.tar.gz
cgeo-d9505ffab25f265faa37bcae664db50c8d2763ac.tar.bz2
Refactoring: replace "test ? true : false" by "test"
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index 81fe5a9..bb844a5 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -472,7 +472,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
if (null == mapStateIntent) {
followMyLocation = live;
} else {
- followMyLocation = 1 == mapStateIntent[3] ? true : false;
+ followMyLocation = 1 == mapStateIntent[3];
}
if (geocodeIntent != null || searchIntent != null || coordsIntent != null || mapStateIntent != null) {
centerMap(geocodeIntent, searchIntent, coordsIntent, mapStateIntent);