mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(recents): Force refresh state to true on swipe
This commit is contained in:
parent
79f3f45e21
commit
45063d8830
1 changed files with 3 additions and 3 deletions
|
@ -30,9 +30,6 @@ import com.google.android.material.snackbar.Snackbar
|
|||
import com.google.android.material.tabs.TabLayout
|
||||
import eu.davidea.flexibleadapter.FlexibleAdapter
|
||||
import eu.kanade.tachiyomi.R
|
||||
import yokai.i18n.MR
|
||||
import yokai.util.lang.getString
|
||||
import dev.icerock.moko.resources.compose.stringResource
|
||||
import eu.kanade.tachiyomi.data.backup.restore.BackupRestoreJob
|
||||
import eu.kanade.tachiyomi.data.database.models.Chapter
|
||||
import eu.kanade.tachiyomi.data.database.models.ChapterHistory
|
||||
|
@ -94,6 +91,8 @@ import eu.kanade.tachiyomi.util.view.withFadeTransaction
|
|||
import eu.kanade.tachiyomi.widget.LinearLayoutManagerAccurateOffset
|
||||
import kotlinx.coroutines.flow.collectLatest
|
||||
import kotlinx.coroutines.launch
|
||||
import yokai.i18n.MR
|
||||
import yokai.util.lang.getString
|
||||
import java.util.*
|
||||
import kotlin.math.max
|
||||
import android.R as AR
|
||||
|
@ -396,6 +395,7 @@ class RecentsController(bundle: Bundle? = null) :
|
|||
}
|
||||
binding.swipeRefresh.setOnRefreshListener {
|
||||
if (!LibraryUpdateJob.isRunning(view.context)) {
|
||||
binding.swipeRefresh.isRefreshing = true
|
||||
snack?.dismiss()
|
||||
snack = view.snack(MR.strings.updating_library) {
|
||||
anchorView =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue