mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
[drape] Allow controlling viewport restoration on DeactivateMapSelection
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
fc199252eb
commit
90492e95e6
@@ -767,9 +767,16 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
||||
private void showPositionChooser(ChoosePositionMode mode, boolean isBusiness, boolean applyPosition)
|
||||
{
|
||||
closeFloatingToolbarsAndPanels(false);
|
||||
int width = mMapFragment.getView().getWidth();
|
||||
int height = mMapFragment.getView().getHeight();
|
||||
Framework.nativeSetVisibleRect(0, 0, width, height);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user