diff options
Diffstat (limited to 'main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java b/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java index afadb33..299256c 100644 --- a/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java +++ b/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java @@ -9,7 +9,7 @@ import android.widget.TextView; /** * view click listener to automatically switch different coordinate formats - * + * */ public class CoordinatesFormatSwitcher implements OnClickListener { @@ -29,6 +29,7 @@ public class CoordinatesFormatSwitcher implements OnClickListener { @Override public void onClick(View view) { + assert view instanceof TextView; position = (position + 1) % availableFormats.length; TextView textView = (TextView) view; // rotate coordinate formats on click |
