[android] Review fixes

This commit is contained in:
Roman Romanov 2016-10-21 16:32:46 +04:00 committed by Arsentiy Milchakov
parent af3ff28dc7
commit 4dc1d18ca5
4 changed files with 5 additions and 4 deletions

View file

@ -6,4 +6,4 @@
<solid android:color="@color/bg_brand_opentable"/>
</shape>
</item>
</ripple>
</ripple>

View file

@ -4,4 +4,4 @@
android:state_pressed="true"/>
<item android:drawable="@color/bg_brand_opentable"/>
</selector>
</selector>

View file

@ -654,7 +654,7 @@ public class PlacePageView extends RelativeLayout
if (info == null)
return;
String event = Statistics.EventName.PP_SPONSORED_BOOK;
String event = Statistics.EventName.PP_SPONSORED_NONE;
Map<String, String> params = new HashMap<>();
switch (info.getType())
{
@ -882,7 +882,7 @@ public class PlacePageView extends RelativeLayout
UiUtils.hide(mAvDirection);
UiUtils.setTextAndHideIfEmpty(mTvAddress, mMapObject.getAddress());
boolean sponsored = (mSponsored != null);
boolean sponsored = (mSponsored != null && mSponsored.getType() != Sponsored.TYPE_NONE);
UiUtils.showIf(sponsored, mSponsoredInfo);
if (sponsored)
{

View file

@ -71,6 +71,7 @@ public enum Statistics
public static final String PP_SPONSORED_DETAILS = "Placepage_Hotel_details";
public static final String PP_SPONSORED_BOOK = "Placepage_Hotel_book";
public static final String PP_SPONSORED_OPENTABLE = "Placepage_Restaurant_book";
public static final String PP_SPONSORED_NONE = "Placepage_Sponsored_none";
public static final String PP_DIRECTION_ARROW = "PP. DirectionArrow";
public static final String PP_DIRECTION_ARROW_CLOSE = "PP. DirectionArrowClose";
public static final String PP_METADATA_COPY = "PP. CopyMetadata";