[android] move statistic tracking into the if block

This commit is contained in:
Roman Romanov 2017-05-02 14:48:55 +04:00 committed by r.kuznetsov
parent 181d27505e
commit 96a6d1affb

View file

@ -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: