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

override onNewIntent in MainActivity to improve sharing #4527

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

connyduck
Copy link
Collaborator

When investigating #4517, I found that sharing to Tusky sometimes just does nothing.
This is because when MainActivity is already open, it isn't always restarted (onCreate not called) but instead the Intent is delivered to onNewIntent of the existing MainActivity. This fixes the issue by overriding onNewIntent.

The problem does not always reproduce, it seems to depend on what is shared from where and on the Android version. MainActivity must be open for the problem to occur though.

This probably also fixes the issue that sometimes Tusky does not show the right tab when clicking on a notification (#2691)

@connyduck connyduck requested review from Tak and charlag June 22, 2024 12:07
@connyduck connyduck merged commit f5ad399 into develop Jun 28, 2024
3 checks passed
@connyduck connyduck deleted the improve-sharing branch June 28, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants