You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Snackbars not adapted to edge-to-edge in landscape #4918
Confirmed. The snackbar helpers build the Snackbar with no window-insets handling, so in landscape edge-to-edge (enforced on Android 15+) it renders under the side/bottom system bars.
Activity.showMessageInSnackbar / showSnackbarWithAction anchor to android.R.id.content (or bottom_nav_view) and never apply WindowInsetsCompat.Type.systemBars() to the snackbar — owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt:76-96.
Fragment.showMessageInSnackbar / showSnackbarWithAction same — no insets — owncloudApp/src/main/java/com/owncloud/android/extensions/FragmentExt.kt:46-64.
adaptInfiniteEdges only insets the toolbar and pads the root content view; it doesn't touch the snackbar — ActivityExt.kt:405-443. Same insets-only-on-some-views gap as the toolbar/appBar cases in the sibling landscape issues.
Fix direction: apply left/right (landscape) and bottom system-bar insets to the Snackbar view (e.g. ViewCompat.setOnApplyWindowInsetsListener on snackbar.view setting margins from systemBars()), or anchor to an already-inset view. Contributions welcome per the label.
Activity
DeepDiver1975 commentedon Jul 6, 2026
Confirmed. The snackbar helpers build the Snackbar with no window-insets handling, so in landscape edge-to-edge (enforced on Android 15+) it renders under the side/bottom system bars.
Activity.showMessageInSnackbar/showSnackbarWithActionanchor toandroid.R.id.content(orbottom_nav_view) and never applyWindowInsetsCompat.Type.systemBars()to the snackbar —owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt:76-96.Fragment.showMessageInSnackbar/showSnackbarWithActionsame — no insets —owncloudApp/src/main/java/com/owncloud/android/extensions/FragmentExt.kt:46-64.adaptInfiniteEdgesonly insets the toolbar and pads the root content view; it doesn't touch the snackbar —ActivityExt.kt:405-443. Same insets-only-on-some-views gap as the toolbar/appBar cases in the sibling landscape issues.Fix direction: apply left/right (landscape) and bottom system-bar insets to the Snackbar view (e.g.
ViewCompat.setOnApplyWindowInsetsListeneronsnackbar.viewsetting margins fromsystemBars()), or anchor to an already-inset view. Contributions welcome per the label.🤖 Generated with Claude Code