Skip to content

Commit 632cc6c

Browse files
committed
Rename method
1 parent 3581083 commit 632cc6c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

profile/src/main/java/no/nordicsemi/android/toolbox/profile/repository/channelSounding/ChannelSoundingManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ internal class ChannelSoundingManager @Inject constructor(
140140
* @param updateRate The desired update rate for ranging measurements. Default is [UpdateRate.NORMAL].
141141
*/
142142
@RequiresApi(Build.VERSION_CODES.BAKLAVA)
143-
fun addDeviceToRangingSession(
143+
fun startRangingMeasurement(
144144
device: String,
145145
updateRate: UpdateRate = UpdateRate.NORMAL
146146
) {

profile/src/main/java/no/nordicsemi/android/toolbox/profile/viewmodel/ChannelSoundingViewModel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ internal class ChannelSoundingViewModel @Inject constructor(
8383
}.launchIn(viewModelScope)
8484
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA) {
8585
try {
86-
channelSoundingManager.addDeviceToRangingSession(address, rate)
86+
channelSoundingManager.startRangingMeasurement(address, rate)
8787
} catch (e: Exception) {
8888
Timber.e("${e.message}")
8989
}
@@ -104,7 +104,7 @@ internal class ChannelSoundingViewModel @Inject constructor(
104104
viewModelScope.launch {
105105
if (_channelSoundingServiceState.value.updateRate != event.frequency) {
106106
channelSoundingManager.closeSession(address) {
107-
channelSoundingManager.addDeviceToRangingSession(
107+
channelSoundingManager.startRangingMeasurement(
108108
address,
109109
event.frequency
110110
)
@@ -131,7 +131,7 @@ internal class ChannelSoundingViewModel @Inject constructor(
131131
try {
132132
viewModelScope.launch {
133133
channelSoundingManager.closeSession(address) {
134-
channelSoundingManager.addDeviceToRangingSession(
134+
channelSoundingManager.startRangingMeasurement(
135135
address,
136136
_channelSoundingServiceState.value.updateRate
137137
)

0 commit comments

Comments
 (0)