Keep loaded title refreshes stable and guard request identities
This commit is contained in:
parent
b51dced5fe
commit
5f759b8fef
11 changed files with 305 additions and 39 deletions
|
|
@ -40,4 +40,5 @@ fun RecoveryToast(message: String, modifier: Modifier = Modifier) {
|
|||
object RecoveryMessage {
|
||||
const val StillUnreachable = "Still can’t reach it. The last saved view stays on screen."
|
||||
const val PlaybackUnavailable = "Can’t reach Jellyfin to play. Check the network and try again."
|
||||
const val TitleActionUnavailable = "Can’t update this title right now."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,8 @@ class TitleState(
|
|||
val hidden = id == "hide"
|
||||
data = data.copy(hidden = hidden)
|
||||
onAction(TitleAction.Hide(data.item, hidden))
|
||||
if (hidden) { sheetIndex = 0; sheet = TitleSheet.HiddenReceipt } else toast = "Back in your picks."
|
||||
if (hidden && data.hidden) { sheetIndex = 0; sheet = TitleSheet.HiddenReceipt }
|
||||
else if (!hidden && !data.hidden) toast = "Back in your picks."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue