Skip to content

fix: Check keyboard status during snapshot instead of using WindowInsets listener#77

Merged
marandaneto merged 6 commits intomainfrom
fix/statusbar-not-changing
Jan 11, 2024
Merged

fix: Check keyboard status during snapshot instead of using WindowInsets listener#77
marandaneto merged 6 commits intomainfrom
fix/statusbar-not-changing

Conversation

@marandaneto
Copy link
Member

@marandaneto marandaneto commented Jan 10, 2024

💡 Motivation and Context

https://posthog.com/questions/status-bar-color-not-updating

I recall fixing something similar in the past as well.
Sometimes the new APIs (setOnApplyWindowInsetsListener) are not well documented on when and how to use them, this is just another weird corner case/side effect.

💚 How did you test it?

Testing the sample app with a different theme and status colors

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

@marandaneto marandaneto requested a review from a team January 10, 2024 10:30
@marandaneto marandaneto marked this pull request as ready for review January 10, 2024 10:30
@marandaneto marandaneto changed the title fix: Check keyboard status during snapshot instead of using view list… fix: Check keyboard status during snapshot instead of using WindowInsets listener Jan 10, 2024
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

👍

@marandaneto marandaneto merged commit 7735aca into main Jan 11, 2024
@marandaneto marandaneto deleted the fix/statusbar-not-changing branch January 11, 2024 09:26
@github-actions
Copy link
Contributor

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Next" section. Make sure the entry includes this PR's number.
Example:

## Next
- Check keyboard status during snapshot instead of using WindowInsets listener ([#77](https://github.com/PostHog/posthog-android/pull/77))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 2b370c6

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