我已经读到,建议在片段中注册任何getViewLifecycleOwner()观察者时使用LiveData,以正确处理片段的生命周期。OnActivityCreated方法中(当片段显示在屏幕上时会被两次调用),我似乎从对getViewLifecycleOwner()的调用中得到了不同的LifecycleOwner对象,这就是为什么我要将多个观察者注册到LiveData对象中。+ this.hashCode()); }public class Live
MainActivity(Activity) containing Bottom Navigation View with three fragments nested below HomeFragment(Fragment) containing TabLayout with ViewPager with following two tabs Journal(Fragment) Bookmarks(Fragment)- Fragment</e