[android] Tuned routing plan frame show while search in navigation is doing

This commit is contained in:
alexzatsepin 2017-01-23 16:00:52 +03:00 committed by Vladimir Byko-Ianko
parent 23740e6a52
commit ba6670edb8

View file

@ -1,5 +1,6 @@
package com.mapswithme.maps.widget.menu;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewGroup;
@ -282,6 +283,8 @@ public class MainMenu extends BaseMenu
if (mLayoutMeasured)
{
show(state != State.NAVIGATION && !isFullScreen);
UiUtils.showIf(state == State.MENU, mButtonsFrame);
UiUtils.showIf(state == State.ROUTE_PREPARE, mRoutePlanFrame);
mContentFrame.measure(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
mContentHeight = mContentFrame.getMeasuredHeight();
@ -298,7 +301,7 @@ public class MainMenu extends BaseMenu
button.setEnabled(enable);
}
public void setVisible(Item item, boolean show)
private void setVisible(@NonNull Item item, boolean show)
{
final View itemInButtonsFrame = mButtonsFrame.findViewById(item.mViewId);
if (itemInButtonsFrame != null)