Skip to content

[BUG] Snackbars not adapted to edge-to-edge in landscape #4918

Open

Description

@joragua

Actual behaviour

  • Snackarbars are not adapted to edge-to-edge in landscape mode
Screen_recording_20260703_135145.mp4

Expected behaviour

  • Snackbars should be adapted to edge-to-edge feature in landscape mode

Environment data

Android version: Starting from Android 15

Activity

  1. DeepDiver1975 commented on Jul 6, 2026

    @DeepDiver1975
    Contributor

    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.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions