From 6165ec4f26ba5860c5e3da2913bf6accc49d199e Mon Sep 17 00:00:00 2001 From: rsudev Date: Mon, 30 Mar 2015 15:45:55 +0200 Subject: Fixes #4801, Crash using new Hint Option on go to coordinates - hide menu if no cache is available to compass --- main/src/cgeo/geocaching/CompassActivity.java | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.1