mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 12:47:26 +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
|
||||
|
||||
init {
|
||||
retainViewMode = RetainViewMode.RETAIN_DETACH
|
||||
|
||||
addLifecycleListener(
|
||||
object : LifecycleListener() {
|
||||
override fun postCreateView(controller: Controller, view: View) {
|
||||
|
@ -40,10 +40,6 @@ class LibraryController(
|
||||
*/
|
||||
private var settingsSheet: LibrarySettingsSheet? = null
|
||||
|
||||
init {
|
||||
retainViewMode = RetainViewMode.RETAIN_DETACH
|
||||
}
|
||||
|
||||
override fun createPresenter(): LibraryPresenter = LibraryPresenter()
|
||||
|
||||
@Composable
|
||||
|
Loading…
Reference in New Issue
Block a user