[android] Disabled booking.com integration #22

Signed-off-by: Altynaika <altynaika.toktomuratovaa@gmail.com>
This commit is contained in:
Altynaika 2021-02-05 14:17:53 +06:00 committed by Roman Tsisyk
parent 37419a19ec
commit 2a110ad3c3
2 changed files with 20 additions and 20 deletions

View file

@ -133,7 +133,7 @@ public final class PlacePageButtons
// End of autogenerated code.
// ---------------------------------------------------------------------------------------------
BOOKING,
BOOKING_SEARCH,
// BOOKING_SEARCH,
OPENTABLE,
BACK,
BOOKMARK,
@ -263,18 +263,18 @@ public final class PlacePageButtons
}
},
BOOKING_SEARCH(
R.string.booking_search,
new ImageResources(R.drawable.ic_menu_search),
ButtonType.BOOKING_SEARCH)
{
@DrawableRes
@Override
public int getBackgroundResource()
{
return R.drawable.button_booking;
}
},
// BOOKING_SEARCH(
// R.string.booking_search,
// new ImageResources(R.drawable.ic_menu_search),
// ButtonType.BOOKING_SEARCH)
// {
// @DrawableRes
// @Override
// public int getBackgroundResource()
// {
// return R.drawable.button_booking;
// }
// },
OPENTABLE(
R.string.book_button,
@ -452,7 +452,7 @@ public final class PlacePageButtons
preserveRoutingButtons(res, Item.CALL);
preserveRoutingButtons(res, Item.BOOKING);
preserveRoutingButtons(res, Item.BOOKING_SEARCH);
// preserveRoutingButtons(res, Item.BOOKING_SEARCH);
from = res.indexOf(Item.ROUTE_FROM);
to = res.indexOf(Item.ROUTE_TO);
if (from < mMaxButtons && from > to)

View file

@ -529,7 +529,7 @@ public class PlacePageView extends NestedScrollViewClickFixed
switch (item.getType())
{
case BOOKING:
case BOOKING_SEARCH:
// case BOOKING_SEARCH:
case OPENTABLE:
// ---------------------------------------------------------------------------------------
// Warning: the following code is autogenerated.
@ -631,9 +631,9 @@ public class PlacePageView extends NestedScrollViewClickFixed
onSponsoredClick(true /* book */, false);
break;
case BOOKING_SEARCH:
onBookingSearchBtnClicked();
break;
// case BOOKING_SEARCH:
// onBookingSearchBtnClicked();
// break;
case CALL:
onCallBtnClicked();
@ -1692,8 +1692,8 @@ public class PlacePageView extends NestedScrollViewClickFixed
}
}
if (!TextUtils.isEmpty(mapObject.getBookingSearchUrl()))
buttons.add(PlacePageButtons.Item.BOOKING_SEARCH);
// if (!TextUtils.isEmpty(mapObject.getBookingSearchUrl()))
// buttons.add(PlacePageButtons.Item.BOOKING_SEARCH);
if (mapObject.hasPhoneNumber())
buttons.add(PlacePageButtons.Item.CALL);