diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-16 13:43:25 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-16 13:51:50 +0200 |
| commit | d9505ffab25f265faa37bcae664db50c8d2763ac (patch) | |
| tree | 34e8d219496e3369ca0b4f3619629e63e48df12d /main/src | |
| parent | 0b8800684da10f1b66e56deaa14d21905b289896 (diff) | |
| download | cgeo-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.java | 2 |
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); |
