Skip to content

Commit

Permalink
Merge pull request #126 from auth0/fix-webauth
Browse files Browse the repository at this point in the history
Fix android web authentication
  • Loading branch information
lbalmaceda authored Jan 31, 2018
2 parents d521914 + 301858b commit a5e6c8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions android/src/main/java/com/auth0/react/A0Auth0Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ public void showUrl(String url, boolean closeOnLoad, Callback callback) {
if (activity != null) {
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
CustomTabsIntent customTabsIntent = builder.build();
customTabsIntent.intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
customTabsIntent.intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
customTabsIntent.launchUrl(activity, Uri.parse(url));
} else {
final Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setData(Uri.parse(url));
getReactApplicationContext().startActivity(intent);
}
Expand Down

0 comments on commit a5e6c8b

Please sign in to comment.