Skip to content

Commit

Permalink
mapbox#1856 - Getting menu item checked based on style selection
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed Aug 12, 2015
1 parent 7488209 commit 334de10
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,22 +302,27 @@ public boolean onNavigationItemSelected(MenuItem menuItem) {

case R.id.actionStyleMapboxStreets:
changeMapStyle(getString(R.string.styleURLMapboxStreets));
menuItem.setChecked(true);
break;

case R.id.actionStyleEmerald:
changeMapStyle(getString(R.string.styleURLEmerald));
menuItem.setChecked(true);
break;

case R.id.actionStyleLight:
changeMapStyle(getString(R.string.styleURLLight));
menuItem.setChecked(true);
break;

case R.id.actionStyleDark:
changeMapStyle(getString(R.string.styleURLDark));
menuItem.setChecked(true);
break;

case R.id.actionStyleSatellite:
changeMapStyle(getString(R.string.styleURLSatellite));
menuItem.setChecked(true);
break;
}

Expand Down

0 comments on commit 334de10

Please sign in to comment.