forked from organicmaps/organicmaps-tmp
[android] move statistic tracking into the if block
This commit is contained in:
parent
181d27505e
commit
96a6d1affb
1 changed files with 3 additions and 2 deletions
|
@ -1555,10 +1555,11 @@ public class PlacePageView extends RelativeLayout
|
|||
if (localAdInfo == null)
|
||||
throw new AssertionError("A local ad must be non-null if button is shown!");
|
||||
|
||||
Statistics.INSTANCE.trackPPOwnershipButtonClick(mMapObject);
|
||||
|
||||
if (!TextUtils.isEmpty(localAdInfo.getUrl()))
|
||||
{
|
||||
Statistics.INSTANCE.trackPPOwnershipButtonClick(mMapObject);
|
||||
Utils.openUrl(getContext(), localAdInfo.getUrl());
|
||||
}
|
||||
}
|
||||
break;
|
||||
case R.id.ll__more:
|
||||
|
|
Loading…
Add table
Reference in a new issue