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) {