forked from organicmaps/organicmaps
Show zoom buttons in routing.
This commit is contained in:
parent
474125a117
commit
11ee934478
1 changed files with 10 additions and 3 deletions
|
@ -996,15 +996,20 @@ public class MWMActivity extends BaseMwmFragmentActivity
|
|||
invalidateLocationState();
|
||||
startWatchingExternalStorage();
|
||||
|
||||
UiUtils.showIf(MWMApplication.get().nativeGetBoolean(SettingsActivity.ZOOM_BUTTON_ENABLED, true),
|
||||
findViewById(R.id.map_button_plus),
|
||||
findViewById(R.id.map_button_minus));
|
||||
refreshZoomButtonsVisibility();
|
||||
|
||||
SearchController.getInstance().onResume();
|
||||
mPlacePage.onResume();
|
||||
mLikesManager.showLikeDialogForCurrentSession();
|
||||
}
|
||||
|
||||
private void refreshZoomButtonsVisibility()
|
||||
{
|
||||
UiUtils.showIf(MWMApplication.get().nativeGetBoolean(SettingsActivity.ZOOM_BUTTON_ENABLED, true) ||
|
||||
Framework.nativeIsRoutingActive(),
|
||||
mBtnZoomIn, mBtnZoomOut);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause()
|
||||
{
|
||||
|
@ -1565,6 +1570,7 @@ public class MWMActivity extends BaseMwmFragmentActivity
|
|||
mRlStartRouting.setVisibility(View.VISIBLE);
|
||||
|
||||
Framework.nativeCloseRouting();
|
||||
refreshZoomButtonsVisibility();
|
||||
}
|
||||
|
||||
private void switchNextLocationState()
|
||||
|
@ -1625,6 +1631,7 @@ public class MWMActivity extends BaseMwmFragmentActivity
|
|||
@Override
|
||||
public void run()
|
||||
{
|
||||
refreshZoomButtonsVisibility();
|
||||
if (resultCode == RoutingResultCodes.NO_ERROR)
|
||||
{
|
||||
mRlTurnByTurnBox.setVisibility(View.GONE);
|
||||
|
|
Loading…
Add table
Reference in a new issue