Skip to content

fix: podcast player panel draws under system navigation bar in main feed view#1669

Open
mvanhorn wants to merge 1 commit into
nextcloud:masterfrom
mvanhorn:fix/1647-podcast-panel-edge-to-edge-insets
Open

fix: podcast player panel draws under system navigation bar in main feed view#1669
mvanhorn wants to merge 1 commit into
nextcloud:masterfrom
mvanhorn:fix/1647-podcast-panel-edge-to-edge-insets

Conversation

@mvanhorn

Copy link
Copy Markdown

Summary

The collapsed podcast playback panel no longer draws underneath the system navigation bar when playback starts from the main feed view. The bottom system-bar inset is now handled in the shared podcast panel code, so both host activities behave identically under edge-to-edge.

Why this matters

In #1647, @yukijoou narrowed the repro to playback started from the main feed without opening an article, which is why it did not reproduce at first: activity_news_detail.xml sets fitsSystemWindows on its root CoordinatorLayout, but activity_newsreader.xml only sets it on an inner CoordinatorLayout that does not contain the PodcastSlidingUpPanelLayout, leaving the panel flush with the physical screen bottom.

Changes

  • An OnApplyWindowInsetsListener on the sliding panel raises the collapsed panel height by the system-bars bottom inset and pads the collapsed header so controls are not clipped.
  • NewsDetailActivity already consumes the inset via fitsSystemWindows, so the listener receives a zero bottom inset there and behavior is unchanged. The root of activity_newsreader.xml intentionally keeps its existing edge-to-edge inset handling.

Testing

Static review against both layout variants (portrait and sw600dp-land); the inset math only adds the reported bottom inset on top of the existing 68dp panel height. A device pass on API 35 edge-to-edge is the remaining verification, which CI/screenshots from the reporter's repro path will exercise.

Fixes #1647

Signed-off-by: Matt Van Horn 455140+mvanhorn@users.noreply.github.com

…eed view

Fixes nextcloud#1647

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
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.

Podcast player activity draws under system UI elements

1 participant