[android] added the resumeZoomFunctions() function to fix the zoom button bug. #4738

Closed
Aryan-Sagavekar wants to merge 1 commit from zoombutton2 into master

View file

@ -268,6 +268,7 @@ public class MapButtonsController extends Fragment
public void showMapButtons(boolean show)
{
resumeZoomButtons();
if (show)
UiUtils.show(mFrame);
else
@ -369,4 +370,15 @@ public class MapButtonsController extends Fragment
mContentView.removeOnLayoutChangeListener(this);
}
}
public void resumeZoomButtons(){
if(Config.showZoomButtons())
{
mButtonsMap.get(MapButtons.zoom).setVisibility(View.VISIBLE);
}
else
{
mButtonsMap.get(MapButtons.zoom).setVisibility(View.GONE);
}
}
}