mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -04:00
#2238 removed library tab reference
This commit is contained in:
parent
6888cd7dbe
commit
a089bc3807
@ -111,17 +111,11 @@ class LocalLibraryFragment : BaseFragment() {
|
||||
zimManageViewModel.fileSelectActions.offer(FileSelectActions.RestartActionMode)
|
||||
}
|
||||
|
||||
disposable.add(zimManageViewModel.libraryTabIsVisible.subscribe { finishActionMode() })
|
||||
|
||||
go_to_downloads_button_no_files.setOnClickListener {
|
||||
offerAction(FileSelectActions.UserClickedDownloadBooksButton)
|
||||
}
|
||||
}
|
||||
|
||||
private fun finishActionMode() {
|
||||
actionMode?.finish()
|
||||
}
|
||||
|
||||
private fun sideEffects() = zimManageViewModel.sideEffects.subscribe(
|
||||
{
|
||||
val effectResult = it.invokeWith(requireActivity() as AppCompatActivity)
|
||||
|
@ -116,8 +116,6 @@ class ZimManageViewModel @Inject constructor(
|
||||
val requestFiltering = BehaviorProcessor.createDefault("")
|
||||
val currentPage = PublishProcessor.create<Int>()
|
||||
|
||||
val libraryTabIsVisible = currentPage.map { it == 1 }.filter { it }
|
||||
|
||||
private val compositeDisposable = CompositeDisposable()
|
||||
|
||||
init {
|
||||
|
Loading…
x
Reference in New Issue
Block a user