diff options
author | rsudev <rasch@munin-soft.de> | 2015-03-30 15:45:55 +0200 |
---|---|---|
committer | rsudev <rasch@munin-soft.de> | 2015-03-30 15:54:15 +0200 |
commit | 6165ec4f26ba5860c5e3da2913bf6accc49d199e (patch) | |
tree | c6e04390a4fd6d6556f3d8f970d8bcd01744cfcd | |
parent | 96854f430c65a3d420ce911c7030fa4cfe726f96 (diff) | |
download | cgeo-6165ec4f26ba5860c5e3da2913bf6accc49d199e.zip cgeo-6165ec4f26ba5860c5e3da2913bf6accc49d199e.tar.gz cgeo-6165ec4f26ba5860c5e3da2913bf6accc49d199e.tar.bz2 |
Fixes #4801, Crash using new Hint Option on go to coordinates
- hide menu if no cache is available to compass
-rw-r--r-- | main/src/cgeo/geocaching/CompassActivity.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/CompassActivity.java b/main/src/cgeo/geocaching/CompassActivity.java index 912ca5c..e4e1cca 100644 --- a/main/src/cgeo/geocaching/CompassActivity.java +++ b/main/src/cgeo/geocaching/CompassActivity.java @@ -179,6 +179,7 @@ public class CompassActivity extends AbstractActionBarActivity { menu.findItem(R.id.menu_tts_start).setVisible(!SpeechService.isRunning()); menu.findItem(R.id.menu_tts_stop).setVisible(SpeechService.isRunning()); menu.findItem(R.id.menu_compass_cache).setVisible(cache != null); + menu.findItem(R.id.menu_hint).setVisible(cache != null); return true; } |