Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CCT stay alive when activity is paused #121

Merged
merged 1 commit into from
Oct 5, 2017
Merged

Conversation

lbalmaceda
Copy link
Contributor

By removing the flag, the CCT is not closed when the activity is paused and resumed. This is already working for Browser (not CCT mode) and Webview authentication. It might fix #116.

@@ -126,7 +126,6 @@ public void run() {
final Intent intent = new CustomTabsIntent.Builder(session.get())
.build()
.intent;
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing does not cause any other issues? Only asking as issues that required this to fix in RNA.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CCT is not another tab that stays open on the browser, is more like an activity. By removing the flag you make the activity stay up after the app is paused/resumed. Yes, we should probably do the same for RNA and just keep that flag for browser (not CCT) authentication. I didn't do the PR yet because it's not just removing the flag.. CustomTabsIntent may fail to find a package that could "handle CCT and so default to use Browser. We must catch and add the flag to that case too.

@aaguiarz aaguiarz merged commit a669931 into master Oct 5, 2017
@aaguiarz aaguiarz deleted the fix-cct-resume-issue branch October 5, 2017 14:44
@lbalmaceda lbalmaceda modified the milestones: v1-Next, 1.10.1 Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot minimize application with opened Chrome Tabs
3 participants