From 2a3dafa5d15be4ec97c63588ed12b1d0e959cb4d Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sun, 27 Nov 2016 15:30:23 +0300 Subject: [PATCH] Fix --- .../src/net/osmand/plus/download/ui/ItemViewHolder.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java b/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java index 417d323ba2..4e914fac8d 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java @@ -1,6 +1,7 @@ package net.osmand.plus.download.ui; import android.annotation.SuppressLint; +import android.content.ActivityNotFoundException; import android.content.DialogInterface; import android.content.Intent; import android.content.res.Resources; @@ -323,9 +324,14 @@ public class ItemViewHolder { public void onClick(View v) { switch (clickAction) { case ASK_FOR_FULL_VERSION_PURCHASE: + context.getMyApplication().logEvent(context, "click_buy_plus"); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Version.marketPrefix(context .getMyApplication()) + "net.osmand.plus")); - context.startActivity(intent); + try { + context.startActivity(intent); + } catch (ActivityNotFoundException e) { + //ignore + } break; case ASK_FOR_SEAMARKS_PLUGIN: context.startActivity(new Intent(context, context.getMyApplication().getAppCustomization()