forked from organicmaps/organicmaps
[android] Tuned routing plan frame show while search in navigation is doing
This commit is contained in:
parent
23740e6a52
commit
ba6670edb8
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue