Retain backstack views by default (#7621)

This commit is contained in:
Ivan Iskandar 2022-07-27 20:00:18 +07:00 committed by GitHub
parent f8d8cf9f6a
commit dcafdac036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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) {

View File

@ -40,10 +40,6 @@ class LibraryController(
*/
private var settingsSheet: LibrarySettingsSheet? = null
init {
retainViewMode = RetainViewMode.RETAIN_DETACH
}
override fun createPresenter(): LibraryPresenter = LibraryPresenter()
@Composable