Skip to content

Commit

Permalink
Fix #805
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Jul 14, 2023
1 parent e74f0ae commit 68f546e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.SnackbarDuration
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.material3.SnackbarResult
Expand Down Expand Up @@ -482,7 +483,8 @@ fun LocalPlaylistScreen(
coroutineScope.launch {
val snackbarResult = snackbarHostState.showSnackbar(
message = context.getString(R.string.removed_song_from_playlist, currentItem.song.song.title),
actionLabel = context.getString(R.string.undo)
actionLabel = context.getString(R.string.undo),
duration = SnackbarDuration.Short
)
if (snackbarResult == SnackbarResult.ActionPerformed) {
database.transaction {
Expand Down

0 comments on commit 68f546e

Please sign in to comment.