-
Notifications
You must be signed in to change notification settings - Fork 1.3k
For #4438: Fix crash when opening any URL from URL bar w/ long press #4547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on! Did you verify this also fixes the crashes described in #4486 (they have the same cause)
Can we also add a comment to onNewIntent
why we're calling popBackStack there? It's not obvious to me :).
I fixed the issue in a different way, so we don't need popBackStack after all! And yes, this fixes the crashes in #4486. EDIT: Actually, this new solution does not work for some other case I found. |
I cleared both flags because FLAG_ACTIVITY_CLEAR_TASK was causing the issue, and since HomeActivity is SingleTask anyway, FLAG_ACTIVITY_NEW_TASK seemed redundant. These flags were used to fix the "brief flash" problem in #3131, but even after removal, this problem didn't show up in several of my test devices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha sorry I didn't realize when we chatted yesterday that I had added those flags 🙃 I will test this locally to check re #3131 today! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep this looks good!
Pull Request checklist