From 3b87b227e7da6c48a1d9420ac650618e83cba2d9 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 20 Feb 2020 16:47:49 +0200 Subject: [PATCH] Fix ActivityNotFoundException --- .../src/net/osmand/plus/dialogs/WhatsNewDialogFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/WhatsNewDialogFragment.java b/OsmAnd/src/net/osmand/plus/dialogs/WhatsNewDialogFragment.java index f7d697444b..bfb253eca0 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/WhatsNewDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/WhatsNewDialogFragment.java @@ -9,6 +9,7 @@ import android.support.annotation.NonNull; import android.support.v4.app.DialogFragment; import android.support.v7.app.AlertDialog; +import net.osmand.AndroidUtils; import net.osmand.PlatformUtil; import net.osmand.plus.AppInitializer; import net.osmand.plus.OsmandApplication; @@ -36,7 +37,9 @@ public class WhatsNewDialogFragment extends DialogFragment { public void onClick(DialogInterface dialog, int which) { Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(AppInitializer.LATEST_CHANGES_URL)); - startActivity(i); + if (AndroidUtils.isIntentSafe(osmandApplication, i)) { + startActivity(i); + } dismiss(); } });