schedule()方法,而Post.onMain()是用于Runnable posting的new Handler(Looper.getMainLooper()); 一些奇怪的事情正在发生…… 第一次执行代码时,() { throw new IllegalStateException("Can't accessthe Fragment View's LifecycleOwner when "
有一个使用ViewModel从存储库获取数据的片段。let { val data = it.getArticleByUUID{}的片段中,它将在启动{}中等待从ViewModel的getArticleByUUID()和do update ui返回的数据。在这种情况下,如果碎片被销毁,而ViewModel没有销毁,我猜viewLifecyc