use a browser constant here, with the new constant being Orfox

This commit is contained in:
Nathan Freitas 2015-12-16 10:00:03 -05:00
parent c54ab188b0
commit 0a5dd086cd
1 changed files with 3 additions and 3 deletions

View File

@ -634,7 +634,7 @@ public class OrbotMainActivity extends Activity
*/ */
private void openBrowser(final String browserLaunchUrl,boolean forceExternal) 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) 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); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP|Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent); 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 else
{ {