Skip to content

Commit

Permalink
Fix: look center map option if no location from gps
Browse files Browse the repository at this point in the history
  • Loading branch information
sylwke3100 committed Nov 20, 2015
1 parent 61b0e4a commit 911bbf4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ public boolean onPrepareOptionsMenu(Menu menu) {
menu.findItem(R.id.action_ignorepoints_add_done).setEnabled(false);
else
menu.findItem(R.id.action_ignorepoints_add_done).setEnabled(true);
if (sharedLocation.getCurrentLocation().status == 1)
menu.findItem(R.id.action_ignorepoints_add_centermap).setEnabled(true);
else
menu.findItem(R.id.action_ignorepoints_add_centermap).setEnabled(false);
return super.onPrepareOptionsMenu(menu);
}

Expand Down

0 comments on commit 911bbf4

Please sign in to comment.