mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 07:48:30 -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)
|
zimManageViewModel.fileSelectActions.offer(FileSelectActions.RestartActionMode)
|
||||||
}
|
}
|
||||||
|
|
||||||
disposable.add(zimManageViewModel.libraryTabIsVisible.subscribe { finishActionMode() })
|
|
||||||
|
|
||||||
go_to_downloads_button_no_files.setOnClickListener {
|
go_to_downloads_button_no_files.setOnClickListener {
|
||||||
offerAction(FileSelectActions.UserClickedDownloadBooksButton)
|
offerAction(FileSelectActions.UserClickedDownloadBooksButton)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun finishActionMode() {
|
|
||||||
actionMode?.finish()
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun sideEffects() = zimManageViewModel.sideEffects.subscribe(
|
private fun sideEffects() = zimManageViewModel.sideEffects.subscribe(
|
||||||
{
|
{
|
||||||
val effectResult = it.invokeWith(requireActivity() as AppCompatActivity)
|
val effectResult = it.invokeWith(requireActivity() as AppCompatActivity)
|
||||||
|
@ -116,8 +116,6 @@ class ZimManageViewModel @Inject constructor(
|
|||||||
val requestFiltering = BehaviorProcessor.createDefault("")
|
val requestFiltering = BehaviorProcessor.createDefault("")
|
||||||
val currentPage = PublishProcessor.create<Int>()
|
val currentPage = PublishProcessor.create<Int>()
|
||||||
|
|
||||||
val libraryTabIsVisible = currentPage.map { it == 1 }.filter { it }
|
|
||||||
|
|
||||||
private val compositeDisposable = CompositeDisposable()
|
private val compositeDisposable = CompositeDisposable()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user