diff --git a/android/app/src/main/java/app/organicmaps/MwmActivity.java b/android/app/src/main/java/app/organicmaps/MwmActivity.java index fbf480b7e..55f603462 100644 --- a/android/app/src/main/java/app/organicmaps/MwmActivity.java +++ b/android/app/src/main/java/app/organicmaps/MwmActivity.java @@ -42,7 +42,6 @@ import androidx.annotation.CallSuper; import androidx.annotation.Keep; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import androidx.annotation.StyleRes; import androidx.annotation.UiThread; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; @@ -719,16 +718,7 @@ public class MwmActivity extends BaseMwmFragmentActivity private void showPositionChooser(ChoosePositionMode mode, boolean isBusiness, boolean applyPosition) { closeFloatingToolbarsAndPanels(false); - if (mMapFragment != null) - { - final View mapView = mMapFragment.getView(); - if (mapView != null) - { - int width = mapView.getWidth(); - int height = mapView.getHeight(); - Framework.nativeSetVisibleRect(0, 0, width, height); - } - } + UiUtils.show(mPointChooser); mMapButtonsViewModel.setButtonsHidden(true); ChoosePositionMode.set(mode, isBusiness, applyPosition); diff --git a/libs/drape_frontend/frontend_renderer.cpp b/libs/drape_frontend/frontend_renderer.cpp index 2005e514c..641bf0a8f 100644 --- a/libs/drape_frontend/frontend_renderer.cpp +++ b/libs/drape_frontend/frontend_renderer.cpp @@ -825,7 +825,7 @@ void FrontendRenderer::AcceptMessage(ref_ptr message) AddUserEvent(make_unique_dp(msg->GetRect())); m_myPositionController->SetVisibleViewport(msg->GetRect()); m_myPositionController->UpdatePosition(); - PullToBoundArea(false /* randomPlace */, false /* applyZoom */); + // PullToBoundArea(false /* randomPlace */, false /* applyZoom */); break; } @@ -2056,7 +2056,7 @@ void FrontendRenderer::OnScaleEnded() void FrontendRenderer::OnAnimatedScaleEnded() { m_myPositionController->ResetBlockAutoZoomTimer(); - PullToBoundArea(false /* randomPlace */, false /* applyZoom */); + // PullToBoundArea(false /* randomPlace */, false /* applyZoom */); m_firstLaunchAnimationInterrupted = true; m_selectionTrackInfo.reset(); }