This commit is contained in:
Victor Shcherb 2018-05-30 13:11:38 +02:00
parent 94650cc6b0
commit ffb4b39c93

View file

@ -74,6 +74,9 @@ public class SelectMapStyleBottomSheetDialogFragment extends MenuBottomSheetDial
} else { } else {
selectedStyle = savedInstanceState.getString(SELECTED_STYLE_KEY); selectedStyle = savedInstanceState.getString(SELECTED_STYLE_KEY);
} }
if(selectedStyle == null) {
selectedStyle = RendererRegistry.DEFAULT_RENDER;
}
rbColorList = AndroidUtils.createCheckedColorStateList(context, R.color.icon_color, getActiveColorId()); rbColorList = AndroidUtils.createCheckedColorStateList(context, R.color.icon_color, getActiveColorId());