[android] Add explicit check for PointChooserMode #6437

Merged
root merged 1 commit from rt-android-editor-position-chooser into master 2023-11-06 06:48:00 +00:00

View file

@ -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();