Skip to content

Commit

Permalink
Fixed error on edit lyrics in full screen #692
Browse files Browse the repository at this point in the history
  • Loading branch information
fast4x committed Feb 15, 2024
1 parent 016c4cf commit 4d2b1dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ fun Lyrics(
)
)
}

}
)
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import androidx.compose.ui.unit.dp
import coil.compose.AsyncImage
import it.vfsfitvnm.vimusic.Database
import it.vfsfitvnm.vimusic.LocalPlayerServiceBinder
import it.vfsfitvnm.vimusic.models.Song
import it.vfsfitvnm.vimusic.query
import it.vfsfitvnm.vimusic.service.isLocal
import it.vfsfitvnm.vimusic.ui.components.BottomSheet
import it.vfsfitvnm.vimusic.ui.components.BottomSheetState
Expand All @@ -36,6 +38,7 @@ import it.vfsfitvnm.vimusic.ui.styling.px
import it.vfsfitvnm.vimusic.utils.medium
import it.vfsfitvnm.vimusic.utils.secondary
import it.vfsfitvnm.vimusic.utils.thumbnail
import it.vfsfitvnm.vimusic.utils.windows

@ExperimentalTextApi
@SuppressLint("SuspiciousIndentation")
Expand Down Expand Up @@ -126,15 +129,21 @@ fun LyricsSheet(
.padding(horizontal = 4.dp)
) {

if (!player.currentMediaItem?.isLocal!!)
//if (!player.currentMediaItem?.isLocal!!)
player.currentMediaItem?.mediaId?.let {
player.currentMediaItem!!::mediaMetadata.let { it1 ->
Lyrics(
mediaId = it,
isDisplayed = true,
onDismiss = {},
onMaximize = onMaximize,
ensureSongInserted = { Database.insert(player.currentMediaItem!!) },
ensureSongInserted = {
/*
query {
Database.insert(player.currentMediaItem!!)
}
*/
},
size = thumbnailSizeDp,
mediaMetadataProvider = it1,
durationProvider = player::getDuration,
Expand Down

0 comments on commit 4d2b1dc

Please sign in to comment.