diff options
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/preference/VersionPreference.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/preference/VersionPreference.java b/app/src/main/java/com/wireguard/android/preference/VersionPreference.java index 2ed12d63..19c1b719 100644 --- a/app/src/main/java/com/wireguard/android/preference/VersionPreference.java +++ b/app/src/main/java/com/wireguard/android/preference/VersionPreference.java @@ -5,6 +5,7 @@ package com.wireguard.android.preference; +import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.net.Uri; @@ -46,7 +47,9 @@ public class VersionPreference extends Preference { protected void onClick() { final Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("https://www.wireguard.com/")); - getContext().startActivity(intent); + try { + getContext().startActivity(intent); + } catch (final ActivityNotFoundException ignored) { } } } |