mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-14 21:18:56 +01:00
Set splash screen ready state for history and updates pages
This commit is contained in:
@@ -4,6 +4,7 @@ import androidx.activity.OnBackPressedDispatcherOwner
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.collectAsState
|
||||
import androidx.compose.runtime.getValue
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
@@ -57,6 +58,11 @@ class UpdatesController :
|
||||
onMultiDeleteClicked = this::deleteChaptersWithConfirmation,
|
||||
)
|
||||
}
|
||||
LaunchedEffect(state) {
|
||||
if (state !is UpdatesState.Loading) {
|
||||
(activity as? MainActivity)?.ready = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateLibrary() {
|
||||
|
||||
Reference in New Issue
Block a user