mobiledevpro / Android-Kotlin-MVVM-Template

AppTemplate | MVVM + Clean Architecture | Kotlin, Coroutines, LiveData, Koin, Databinding, Navigation components, Room, Crashlytics, Circle CI config, commons classes for UI.
https://bento.me/mobiledevpro
Apache License 2.0
556 stars 51 forks source link

[common-ui] Issue with androidx.fragment:fragment-ktx:1.3.0-beta01. Appbar params is not set (title, home icon, color)) #12

Open dmitriy-chernysh opened 3 years ago

dmitriy-chernysh commented 3 years ago

When there is a dependency androidx.fragment:fragment-ktx:1.3.0-beta01 ,

BaseActivity.setAppBarTitle(...) calls before initToolbar() by some reason.

        super.onCreate(savedInstanceState)

      .....
        setContentView(layoutId)
        initToolbar()
        actionBar = supportActionBar
     ....
    }

Without this dependency, everything works fine