forked from organicmaps/organicmaps-tmp
[android] Added hidding of show on map panel if we are in single search mode(p2p)
This commit is contained in:
parent
f11ded0b22
commit
2491fb155a
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
package com.mapswithme.maps.search;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
|
@ -41,6 +40,7 @@ public class SearchFilterController
|
|||
private BookingFilterParams mBookingFilterParams;
|
||||
|
||||
private final float mElevation;
|
||||
private boolean mHotelMode;
|
||||
|
||||
@NonNull
|
||||
private final View.OnClickListener mClearListener = new View.OnClickListener()
|
||||
|
@ -94,7 +94,7 @@ public class SearchFilterController
|
|||
|
||||
public void show(boolean show, boolean showPopulateButton)
|
||||
{
|
||||
UiUtils.showIf(show, mFrame);
|
||||
UiUtils.showIf(show && (showPopulateButton || mHotelMode), mFrame);
|
||||
showPopulateButton(showPopulateButton);
|
||||
}
|
||||
|
||||
|
@ -110,6 +110,7 @@ public class SearchFilterController
|
|||
|
||||
public void updateFilterButtonVisibility(boolean isHotel)
|
||||
{
|
||||
mHotelMode = isHotel;
|
||||
UiUtils.showIf(isHotel, mFilterButton);
|
||||
}
|
||||
|
||||
|
@ -204,6 +205,7 @@ public class SearchFilterController
|
|||
|
||||
public boolean onBackPressed()
|
||||
{
|
||||
mHotelMode = false;
|
||||
return mFilterView.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue