Show downloaded only banner in all views

(cherry picked from commit 7194f65203)
This commit is contained in:
arkon
2020-10-03 10:48:53 -04:00
committed by Jobobby04
parent 6a3a5c58d4
commit 085722e077
4 changed files with 23 additions and 22 deletions
@@ -226,10 +226,6 @@ class LibraryController(
}
}
if (preferences.downloadedOnly().get()) {
binding.downloadedOnly.isVisible = true
}
binding.btnGlobalSearch.clicks()
.onEach {
router.pushController(
@@ -230,6 +230,10 @@ class MainActivity : BaseActivity<MainActivityBinding>() {
preferences.extensionUpdatesCount()
.asImmediateFlow { setExtensionsBadge() }
.launchIn(scope)
preferences.downloadedOnly()
.asImmediateFlow { binding.downloadedOnly.isVisible = it }
.launchIn(scope)
}
override fun onNewIntent(intent: Intent) {