commit 0a5dd086cdac9d1eabc37fab389dc333b5e6a5a9 Author: Nathan Freitas nathan@freitas.net Date: Wed Dec 16 10:00:03 2015 -0500
use a browser constant here, with the new constant being Orfox --- src/org/torproject/android/OrbotMainActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/org/torproject/android/OrbotMainActivity.java b/src/org/torproject/android/OrbotMainActivity.java index c88f129..f56069e 100644 --- a/src/org/torproject/android/OrbotMainActivity.java +++ b/src/org/torproject/android/OrbotMainActivity.java @@ -634,7 +634,7 @@ public class OrbotMainActivity extends Activity */ private void openBrowser(final String browserLaunchUrl,boolean forceExternal) { - boolean isOrwebInstalled = appInstalledOrNot("info.guardianproject.browser"); + boolean isBrowserInstalled = appInstalledOrNot(TorServiceConstants.BROWSER_APP_USERNAME); if (mBtnVPN.isChecked()||forceExternal) { @@ -649,9 +649,9 @@ public class OrbotMainActivity extends Activity intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP|Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); } - else if (isOrwebInstalled) + else if (isBrowserInstalled) { - startIntent("info.guardianproject.browser",Intent.ACTION_VIEW,Uri.parse(browserLaunchUrl)); + startIntent(TorServiceConstants.BROWSER_APP_USERNAME,Intent.ACTION_VIEW,Uri.parse(browserLaunchUrl)); } else {