-
Notifications
You must be signed in to change notification settings - Fork 292
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
Update the flag when querying the Activities which can handle VIEW intent #452
Conversation
Sorry, do you mind explaining a bit more what the change does? |
Hi @PEConn , Because only types of apps that are visible automatically since Android 11, by using the flag |
The manifest for that demo app has:
So all browsers that support Custom Tabs should be visible. |
Hi @PEConn ,
If you look into the code, the first step is to query all the Activities which can handle the intent. |
Query results changed after I updated the flag from |
That's really weird - ultimately though I'm not against making this change, as it is in demo app code. Do you mind adding a comment saying why you're doing this and that in practice (name the device and Android version you're using) you've found the behaviour to be different from what's documented. |
It turns out the method |
Maybe I'm missing something, but the doc you linked says "long: Value is either 0 or a combination of ...". Looked at your code, I'm fine with bumping the |
@PEConn |
Hey, Thanks for the update. Sorry for being so picky, but could you please either:
As it is, it's a little inconsistent that we've updated the code in one place we use I'd prefer it if you took the first option and landed this PR with just a change to Thanks, |
Update the query flag to cover more installed browser apps (besides Chrome) which may support custom tabs.