[android] Removed hotel search

This commit is contained in:
Dmitry Donskoy 2020-05-22 11:11:42 +03:00 committed by Aleksandr Zatsepin
parent 6e0163aefd
commit cad12d7d59
5 changed files with 0 additions and 35 deletions

View file

@ -51,12 +51,6 @@
android:textColor="?attr/colorAccent"
tools:background="#403033FF"
tools:targetApi="m" />
<TextView
android:id="@+id/hotel_search"
style="@style/MwmTheme.Menu.Content.ListItem"
android:drawableStart="@drawable/ic_menu_hotel_search"
android:text="@string/booking_button_toolbar"
tools:background="#200000FF" />
<FrameLayout
android:id="@+id/download_maps_container"
android:layout_width="match_parent"

View file

@ -2878,13 +2878,6 @@ public class MwmActivity extends BaseMwmFragmentActivity
catalogUrl));
}
@Override
public void onHotelSearchOptionSelected()
{
Statistics.INSTANCE.trackToolbarMenu(MainMenu.Item.HOTEL_SEARCH);
closeMenu(MwmActivity.this::runHotelCategorySearchOnMap);
}
@Override
public void onDownloadMapsOptionSelected()
{

View file

@ -84,23 +84,6 @@ public class MainMenu extends BaseMenu
throw new UnsupportedOperationException("Main menu option doesn't support it!");
}
},
HOTEL_SEARCH(R.id.hotel_search)
{
@NonNull
@Override
public ClickMenuDelegate createClickDelegate(@NonNull MwmActivity activity,
@NonNull Item item)
{
throw new UnsupportedOperationException("Main menu option doesn't support it!");
}
@NonNull
@Override
public String toStatisticValue()
{
return "booking.com";
}
},
SEARCH(R.id.search)
{
@NonNull
@ -286,7 +269,6 @@ public class MainMenu extends BaseMenu
{
mapItem(Item.ADD_PLACE);
mapItem(Item.DOWNLOAD_GUIDES);
mapItem(Item.HOTEL_SEARCH);
mapItem(Item.SEARCH);
mapItem(Item.POINT_TO_POINT);
mapItem(Item.DISCOVERY);

View file

@ -4,7 +4,6 @@ public interface MainMenuOptionListener
{
void onAddPlaceOptionSelected();
void onSearchGuidesOptionSelected();
void onHotelSearchOptionSelected();
void onDownloadMapsOptionSelected();
void onSettingsOptionSelected();
void onShareLocationOptionSelected();

View file

@ -68,9 +68,6 @@ public class MainMenuRenderer implements MenuRenderer
TextView downloadGuides = view.findViewById(R.id.download_guides);
downloadGuides.setOnClickListener(v -> mListener.onSearchGuidesOptionSelected());
Graphics.tint(downloadGuides);
TextView hotelSearch = view.findViewById(R.id.hotel_search);
hotelSearch.setOnClickListener(v -> mListener.onHotelSearchOptionSelected());
Graphics.tint(hotelSearch);
View downloadMapsContainer = view.findViewById(R.id.download_maps_container);
downloadMapsContainer.setOnClickListener(v -> mListener.onDownloadMapsOptionSelected());
TextView downloadMaps = downloadMapsContainer.findViewById(R.id.download_maps);