From 0c6de8537317560e56e89e49dd6f9d55d98134eb Mon Sep 17 00:00:00 2001 From: Minamo Date: Tue, 18 Jul 2023 16:37:51 +0800 Subject: [PATCH] Update DiagnosticFragment.kt fix diagnosticFragment bug --- .../java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt b/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt index 152eb2a0c..953af0b42 100644 --- a/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt +++ b/SampleCode-V5/android-sdk-v5-sample/module-common/src/main/java/dji/sampleV5/modulecommon/pages/DiagnosticFragment.kt @@ -35,7 +35,7 @@ class DiagnosticFragment : DJIFragment() { updateDiagnosticMsg() } - diagnosticVm.currentDeviceStatus.observe(viewLifecycleOwner) { + diagnosticVm.lastDeviceStatus.observe(viewLifecycleOwner) { updateDiagnosticMsg() } }