[tor-commits] [orbot/master] update handling of vpn enabled and app onclick
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu Jan 4 15:26:32 UTC 2018
commit 3b5a361b36956ea4a20cf83b3213c8d43edca1ec
Author: n8fr8 <nathan at freitas.net>
Date: Wed Jan 3 23:49:08 2018 -0500
update handling of vpn enabled and app onclick
---
.../java/org/torproject/android/OrbotMainActivity.java | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index baeb1ad6..bc181df0 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -798,19 +798,7 @@ public class OrbotMainActivity extends AppCompatActivity
if (pkgId != null)
{
- if (pkgId.equals(TorServiceConstants.BROWSER_APP_USERNAME))
- startIntent(pkgId,Intent.ACTION_VIEW,Uri.parse(browserLaunchUrl));
- else
- {
- if (!Prefs.useVpn())
- {
- Toast.makeText(this, R.string.please_enable_vpn, Toast.LENGTH_LONG).show();
- }
- else
- {
- startIntent(pkgId,Intent.ACTION_VIEW,Uri.parse(browserLaunchUrl));
- }
- }
+ startIntent(pkgId,Intent.ACTION_VIEW,Uri.parse(browserLaunchUrl));
}
else if (isBrowserInstalled)
{
More information about the tor-commits
mailing list