From 5212e672b021934e780e8f58009e3061e5d64dfe Mon Sep 17 00:00:00 2001 From: Jaehoon You Date: Wed, 8 Nov 2023 20:00:55 +0900 Subject: [PATCH] virtual-device-app: Change variable name more obviously Signed-off-by: Jaehoon You Signed-off-by: Charles Kim --- .../device/app/feature/closure/DoorLockViewModel.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/virtual-device-app/android/App/feature/closure/src/main/java/com/matter/virtual/device/app/feature/closure/DoorLockViewModel.kt b/examples/virtual-device-app/android/App/feature/closure/src/main/java/com/matter/virtual/device/app/feature/closure/DoorLockViewModel.kt index cb5d2fc77547b2..4f9b0b3a48ce55 100644 --- a/examples/virtual-device-app/android/App/feature/closure/src/main/java/com/matter/virtual/device/app/feature/closure/DoorLockViewModel.kt +++ b/examples/virtual-device-app/android/App/feature/closure/src/main/java/com/matter/virtual/device/app/feature/closure/DoorLockViewModel.kt @@ -39,10 +39,10 @@ constructor( val lockState: LiveData get() = _lockState.asLiveData() - private val _batteryStatus: MutableStateFlow = + private val _batteryRemainingPercentage: MutableStateFlow = getBatPercentRemainingUseCase() as MutableStateFlow - val batteryStatus: LiveData - get() = _batteryStatus.asLiveData() + val batteryRemainingPercentage: LiveData + get() = _batteryRemainingPercentage.asLiveData() init { viewModelScope.launch { startMatterAppServiceUseCase(matterSettings) } @@ -87,7 +87,7 @@ constructor( } fun updateBatterySeekbarProgress(progress: Int) { - _batteryStatus.value = progress + _batteryRemainingPercentage.value = progress } fun updateBatteryStatusToCluster(progress: Int) {