|
@@ -22,6 +22,8 @@ import eu.kanade.tachiyomi.ui.base.controller.NoToolbarElevationController
|
|
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
|
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
|
import eu.kanade.tachiyomi.ui.base.controller.RootController
|
|
import eu.kanade.tachiyomi.ui.base.controller.RootController
|
|
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
|
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
|
|
|
+import eu.kanade.tachiyomi.ui.main.MainActivity
|
|
|
|
+import eu.kanade.tachiyomi.ui.main.offsetFabAppbarHeight
|
|
import eu.kanade.tachiyomi.ui.manga.MangaController
|
|
import eu.kanade.tachiyomi.ui.manga.MangaController
|
|
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
|
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
|
import eu.kanade.tachiyomi.util.system.notificationManager
|
|
import eu.kanade.tachiyomi.util.system.notificationManager
|
|
@@ -109,6 +111,8 @@ class UpdatesController :
|
|
binding.swipeRefresh.isRefreshing = false
|
|
binding.swipeRefresh.isRefreshing = false
|
|
}
|
|
}
|
|
.launchIn(scope)
|
|
.launchIn(scope)
|
|
|
|
+
|
|
|
|
+ binding.actionToolbar.offsetFabAppbarHeight(activity!!)
|
|
}
|
|
}
|
|
|
|
|
|
override fun onDestroyView(view: View) {
|
|
override fun onDestroyView(view: View) {
|
|
@@ -176,6 +180,7 @@ class UpdatesController :
|
|
actionMode!!,
|
|
actionMode!!,
|
|
R.menu.updates_chapter_selection
|
|
R.menu.updates_chapter_selection
|
|
) { onActionItemClicked(actionMode!!, it!!) }
|
|
) { onActionItemClicked(actionMode!!, it!!) }
|
|
|
|
+ (activity as? MainActivity)?.showBottomNav(visible = false, collapse = true)
|
|
}
|
|
}
|
|
|
|
|
|
toggleSelection(position)
|
|
toggleSelection(position)
|
|
@@ -266,6 +271,7 @@ class UpdatesController :
|
|
}
|
|
}
|
|
|
|
|
|
private fun destroyActionModeIfNeeded() {
|
|
private fun destroyActionModeIfNeeded() {
|
|
|
|
+ (activity as? MainActivity)?.showBottomNav(visible = true, collapse = true)
|
|
actionMode?.finish()
|
|
actionMode?.finish()
|
|
}
|
|
}
|
|
|
|
|