File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
feature/mobile/player/src/main/java/com/flixclusive/feature/mobile/player Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ import com.flixclusive.core.ui.mobile.rememberPipMode
51
51
import com.flixclusive.core.ui.mobile.util.toggleSystemBars
52
52
import com.flixclusive.core.ui.player.PLAYER_CONTROL_VISIBILITY_TIMEOUT
53
53
import com.flixclusive.core.ui.player.PlayerScreenNavArgs
54
+ import com.flixclusive.core.ui.player.PlayerSnackbarMessageType
54
55
import com.flixclusive.core.ui.player.util.ACTION_PIP_CONTROL
55
56
import com.flixclusive.core.ui.player.util.PLAYER_PIP_EVENT
56
57
import com.flixclusive.core.ui.player.util.PlayerUiUtil.AudioFocusManager
@@ -78,6 +79,7 @@ import kotlinx.coroutines.async
78
79
import kotlinx.coroutines.delay
79
80
import kotlinx.coroutines.launch
80
81
import kotlin.math.roundToInt
82
+ import kotlin.random.Random
81
83
82
84
interface PlayerScreenNavigator : GoBackAction {
83
85
/* *
@@ -512,7 +514,11 @@ fun PlayerScreen(
512
514
) {
513
515
items(
514
516
items = viewModel.snackbarQueue,
515
- key = { data -> data.type }
517
+ key = { data ->
518
+ if (data.type == PlayerSnackbarMessageType .Error ) {
519
+ data.type.ordinal + Random .nextInt()
520
+ } else data.type.ordinal
521
+ }
516
522
) { data ->
517
523
PlayerSnackbar (
518
524
messageData = data,
You can’t perform that action at this time.
0 commit comments