aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java')
-rw-r--r--main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java b/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java
index 581942a..db299a2 100644
--- a/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java
+++ b/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java
@@ -13,7 +13,7 @@ import android.widget.TextView;
*/
public class CoordinatesFormatSwitcher implements OnClickListener {
- private static GeopointFormatter.Format[] availableFormats = new GeopointFormatter.Format[] {
+ private static final GeopointFormatter.Format[] availableFormats = new GeopointFormatter.Format[] {
GeopointFormatter.Format.LAT_LON_DECMINUTE,
GeopointFormatter.Format.LAT_LON_DECSECOND,
GeopointFormatter.Format.LAT_LON_DECDEGREE
@@ -28,10 +28,10 @@ public class CoordinatesFormatSwitcher implements OnClickListener {
}
@Override
- public void onClick(View view) {
+ public void onClick(final View view) {
assert view instanceof TextView;
position = (position + 1) % availableFormats.length;
- TextView textView = (TextView) view;
+ final TextView textView = (TextView) view;
// rotate coordinate formats on click
textView.setText(coordinates.format(availableFormats[position]));
}