As the LiveData is lifecycle aware too, you don't need to unsuscribe. So, if the activity is using a ViewModel, it needs to recover it like this: val vm = ...
確定! 回上一頁