Skip to content
Merged

Devel #180

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ private void applyEdgeToEdgeInsets() {
if(swipeTarget != null) {
// The bar itself stays coloured below and beside the buttons, so only its content is lifted.
swipeTarget.setPadding(swipeTargetPadding.left + bars.left, swipeTargetPadding.top, swipeTargetPadding.right + bars.right, swipeTargetPadding.bottom + bars.bottom);
// The collapsed bar is swapped for the taller now playing toolbar, which also paints the
// status bar, once the panel is expanded. Keep room for it in both states so that the
// content below the bar does not have to be re-laid out at the end of the slide.
swipeTarget.setMinimumHeight(nowPlayingToolbarHeight + bars.top + bars.bottom);
if(panel instanceof SlidingUpPanelLayout) {
((SlidingUpPanelLayout) panel).setPanelHeight(panelHeight + bars.bottom);
}
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/menu/nowplaying.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<item
android:id="@+id/menu_mediaroute"
compat:actionProviderClass="androidx.mediarouter.app.MediaRouteActionProvider"
compat:actionViewClass="androidx.mediarouter.app.MediaRouteButton"
compat:showAsAction="always"
android:title="@string/menu.cast"/>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/menu/nowplaying_offline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

<item
android:id="@+id/menu_mediaroute"
compat:actionProviderClass="androidx.mediarouter.app.MediaRouteActionProvider"
compat:actionViewClass="androidx.mediarouter.app.MediaRouteButton"
compat:showAsAction="always"
android:title="@string/menu.cast"/>
Expand Down