Skip to content

Commit

Permalink
Merge pull request #36 from blackcandy-org/player-bottom-sheet
Browse files Browse the repository at this point in the history
Enable click mini player to expand into full player
  • Loading branch information
aidewoode authored Apr 19, 2024
2 parents 35a2d33 + a4e5eec commit b28ecdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/src/main/java/org/blackcandy/android/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ class MainActivity : AppCompatActivity(), TurboActivity, OnItemSelectedListener
if (binding.playerBottomSheet != null) {
playerBottomSheetBehavior = BottomSheetBehavior.from(binding.playerBottomSheet!!)
playerBottomSheetBehavior.addBottomSheetCallback(playerBottomSheetCallback)

binding.miniPlayerComposeView?.setOnClickListener {
playerBottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ fun PlayerVerticalLayout(
PlayerInfo(
currentSong = currentSong,
center = true,
modifier = Modifier.padding(top = dimensionResource(R.dimen.padding_small)),
modifier = Modifier.padding(top = dimensionResource(R.dimen.padding_medium)),
)

PlayerControl(
Expand Down

0 comments on commit b28ecdd

Please sign in to comment.