[android] Add explicit check for PointChooserMode #6437
1 changed files with 5 additions and 0 deletions
|
@ -1041,6 +1041,11 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
{
|
||||
UiUtils.show(mPointChooser);
|
||||
mMapButtonsViewModel.setButtonsHidden(true);
|
||||
if (mPointChooserMode == PointChooserMode.NONE)
|
||||
{
|
||||
// BUG: https://github.com/organicmaps/organicmaps/issues/3945
|
||||
throw new IllegalStateException("Unexpected mPositionChooserMode == NONE in ChoosePositionMode");
|
||||
}
|
||||
}
|
||||
if (mOnmapDownloader != null)
|
||||
mOnmapDownloader.onResume();
|
||||
|
|
Reference in a new issue