#1856 - Getting menu item checked based on style selection

This commit is contained in:
Brad Leege
2015-08-12 12:44:45 -05:00
parent 9b975c267a
commit 05a7e29d2f

View File

@@ -302,22 +302,27 @@ public class MainActivity extends AppCompatActivity {
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;
}