mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 00:59:17 +01:00
Retain backstack views by default (#7621)
This commit is contained in:
parent
f8d8cf9f6a
commit
dcafdac036
@ -23,6 +23,8 @@ abstract class BaseController<VB : ViewBinding>(bundle: Bundle? = null) : Contro
|
|||||||
lateinit var viewScope: CoroutineScope
|
lateinit var viewScope: CoroutineScope
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
retainViewMode = RetainViewMode.RETAIN_DETACH
|
||||||
|
|
||||||
addLifecycleListener(
|
addLifecycleListener(
|
||||||
object : LifecycleListener() {
|
object : LifecycleListener() {
|
||||||
override fun postCreateView(controller: Controller, view: View) {
|
override fun postCreateView(controller: Controller, view: View) {
|
||||||
|
@ -40,10 +40,6 @@ class LibraryController(
|
|||||||
*/
|
*/
|
||||||
private var settingsSheet: LibrarySettingsSheet? = null
|
private var settingsSheet: LibrarySettingsSheet? = null
|
||||||
|
|
||||||
init {
|
|
||||||
retainViewMode = RetainViewMode.RETAIN_DETACH
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun createPresenter(): LibraryPresenter = LibraryPresenter()
|
override fun createPresenter(): LibraryPresenter = LibraryPresenter()
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
Loading…
Reference in New Issue
Block a user