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

Apply window insets to accommodate system UI. #1550

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

cillyvms
Copy link
Contributor

To not have UI elements obscured by system bars on Android 15, this PR adds bottom padding to lists in the main vault view, preferences and about.

As for the AppBar, android:fitsSystemWindows="true" only makes the top insets get applied, so I had to manually apply the left and right ones as well. Google seems to recommend using ViewCompat.setOnApplyWindowInsetsListener over android:fitsSystemWindows for this reason. (Tip 10)

Fixes #1549

Copy link
Member

@alexbakker alexbakker left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up! I've added a couple of comments. Also, it looks like we also need to apply insets in AuditLogPreferencesFragment.

@alexbakker
Copy link
Member

Thanks! Could you squash your work into a single commit?

@cillyvms
Copy link
Contributor Author

cillyvms commented Dec 4, 2024

Sure, the squash went through. Please check if it's still all good.

Copy link
Member

@alexbakker alexbakker left a comment

Choose a reason for hiding this comment

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

Thanks!

@alexbakker alexbakker merged commit a76f339 into beemdevelopment:master Dec 4, 2024
4 checks passed
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.

UI elements overlap with system UI with Android 15's edge-to-edge enforcement
2 participants