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

Missing the values for mobile safe areas on startup. #304

Open
sinh-png opened this issue Feb 1, 2025 · 0 comments
Open

Missing the values for mobile safe areas on startup. #304

sinh-png opened this issue Feb 1, 2025 · 0 comments

Comments

@sinh-png
Copy link

sinh-png commented Feb 1, 2025

Unless I'm missing something, the --discord-safe-area-inset-* values should be available right at the start of an activity or at least after the SDK is ready, this was how it used to work. But currently, these values are never available until a change of layout mode or screen orientation.

To test this, logged the value of --discord-safe-area-inset-top every second and it was always empty. Then I switched the activity to picture-in-picture mode or changed screen orientation and the value would become available as 48px. This issue happens with all the top, down, left, right values.

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

No branches or pull requests

1 participant