Skip to content

Commit

Permalink
virtual-device-app: Change variable name more obviously
Browse files Browse the repository at this point in the history
Signed-off-by: Jaehoon You <[email protected]>
Signed-off-by: Charles Kim <[email protected]>
  • Loading branch information
Jaehoon-You committed Nov 8, 2023
1 parent a09b11b commit 5212e67
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ constructor(
val lockState: LiveData<LockState>
get() = _lockState.asLiveData()

private val _batteryStatus: MutableStateFlow<Int> =
private val _batteryRemainingPercentage: MutableStateFlow<Int> =
getBatPercentRemainingUseCase() as MutableStateFlow<Int>
val batteryStatus: LiveData<Int>
get() = _batteryStatus.asLiveData()
val batteryRemainingPercentage: LiveData<Int>
get() = _batteryRemainingPercentage.asLiveData()

init {
viewModelScope.launch { startMatterAppServiceUseCase(matterSettings) }
Expand Down Expand Up @@ -87,7 +87,7 @@ constructor(
}

fun updateBatterySeekbarProgress(progress: Int) {
_batteryStatus.value = progress
_batteryRemainingPercentage.value = progress
}

fun updateBatteryStatusToCluster(progress: Int) {
Expand Down

0 comments on commit 5212e67

Please sign in to comment.