Merge pull request #4872 from mapsme/MAPSME-3141-clicks-on-banners

[android] Added the link following to the banners
This commit is contained in:
Ilya Zverev 2016-12-05 19:20:28 +04:00 committed by GitHub
commit eeea9b4d02
2 changed files with 3 additions and 4 deletions

View file

@ -37,9 +37,7 @@ public final class Banner implements Parcelable
{
mTitle = title;
mMessage = message;
//TODO: uncomment this when cpp banner implementation will be done
//mIconUrl = iconUrl;
mIconUrl = "https://lh6.ggpht.com/bVwOOcO1jm_bfvqtkUDEyyOl2PZ-ZLaxqzylW5NtM2NHSlLQAnC1t45gf6d6JX07XQ=w300";
mIconUrl = iconUrl;
mUrl = url;
}

View file

@ -718,7 +718,8 @@ public class PlacePageView extends RelativeLayout
@Override
public void onBannerClick(@NonNull Banner banner)
{
// TODO (goblinr): go to banner url
if (!TextUtils.isEmpty(banner.getUrl()))
followUrl(banner.getUrl());
}
@Override