Fix crash when deleting downloads

This commit is contained in:
FooIbar committed 2023-12-01 01:57:18 +08:00
1 parent b5cad36967
commit dfb0aa823e
1 file changed
+1 -1
@@ -151,7 +151,7 @@ fun ReorderableItemScope.DownloadCard(
DownloadInfo.STATE_DOWNLOAD -> null
DownloadInfo.STATE_FAILED -> if (info.legacy <= 0) stateFailed else stateFailed2
DownloadInfo.STATE_FINISH -> stringResource(R.string.download_state_finish)
else -> error("Illegal State $downloadState!!!")
else -> null // Chill, will be removed soon
}
ConstraintLayout(modifier = Modifier.padding(8.dp, 4.dp).fillMaxSize()) {
val (