Fix last used source pinned status
(cherry picked from commit 4efc1955484089934768eceb41263f24e08ba22b) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourcePresenter.kt
This commit is contained in:
parent
e346d95b0e
commit
3b08c7fdea
@ -149,7 +149,10 @@ class SourcePresenter(
|
||||
}
|
||||
|
||||
private fun updateLastUsedSource(sourceId: Long) {
|
||||
val source = (sourceManager.get(sourceId) as? CatalogueSource)?.let { SourceItem(it, showButtons = controllerMode == SourceController.Mode.CATALOGUE) }
|
||||
val source = (sourceManager.get(sourceId) as? CatalogueSource)?.let {
|
||||
val isPinned = it.id.toString() in preferences.pinnedSources().get()
|
||||
SourceItem(it, null, isPinned, controllerMode == SourceController.Mode.CATALOGUE)
|
||||
}
|
||||
source?.let { view?.setLastUsedSource(it) }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user