[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] update handling of vpn enabled and app onclick
commit 3b5a361b36956ea4a20cf83b3213c8d43edca1ec
Author: n8fr8 <nathan@xxxxxxxxxxx>
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)
{
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits