Skip to content

Commit

Permalink
remove unwanted NO_HISTORY flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Feb 1, 2018
1 parent fd4baed commit 4736ef2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public void run() {
context.startActivity(intent);
} catch (ActivityNotFoundException ignored) {
Intent fallbackIntent = new Intent(Intent.ACTION_VIEW, uri);
fallbackIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
context.startActivity(fallbackIntent);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void shouldLaunchUriWithFallbackIfCustomTabIntentFails() throws Exception
Intent fallbackIntent = intents.get(1);
assertThat(fallbackIntent.getAction(), is(Intent.ACTION_VIEW));
assertThat(fallbackIntent.getData(), is(uri));
assertThat(fallbackIntent, hasFlag(Intent.FLAG_ACTIVITY_NO_HISTORY));
assertThat(fallbackIntent, not(hasFlag(Intent.FLAG_ACTIVITY_NO_HISTORY)));
assertThat(fallbackIntent.hasExtra(CustomTabsIntent.EXTRA_SESSION), is(false));
assertThat(fallbackIntent.hasExtra(CustomTabsIntent.EXTRA_TITLE_VISIBILITY_STATE), is(false));
}
Expand Down

0 comments on commit 4736ef2

Please sign in to comment.