NavController no current navigation node after device rotation

后端 未结 4 963
予麋鹿
予麋鹿 2020-12-31 08:08

I am making app, which supports different device orientations. Navigation is carried out by Android Jetpack\'s Navigation. App main screen for landscape orientation is prese

4条回答
  •  半阙折子戏
    2020-12-31 08:52

    The problem for me was the version of lifecycle dependency

    "androidx.lifecycle:lifecycle-extensions:$lifecycle_version
    

    version '2.2.0' cause the problem, I returned to use '2.1.0'

    lifecycle_version = '2.1.0'
    

提交回复
热议问题