mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-02-19 05:34:20 +01:00
Removed logs
This commit is contained in:
@@ -35,7 +35,6 @@ import no.nordicsemi.android.nrftoolbox.R
|
||||
import no.nordicsemi.android.nrftoolbox.viewmodel.HomeViewModel
|
||||
import no.nordicsemi.android.nrftoolbox.viewmodel.UiEvent
|
||||
import no.nordicsemi.android.toolbox.lib.utils.Profile
|
||||
import timber.log.Timber
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
@@ -83,7 +82,6 @@ internal fun HomeView() {
|
||||
.padding(start = 16.dp, end = 16.dp, top = 16.dp),
|
||||
)
|
||||
if (state.connectedDevices.isNotEmpty()) {
|
||||
Timber.tag("AAA").d("Connected devices: ${state.connectedDevices.keys}")
|
||||
Column(
|
||||
verticalArrangement = Arrangement.spacedBy(16.dp),
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
@@ -116,8 +114,6 @@ internal fun HomeView() {
|
||||
?.let { serviceManager ->
|
||||
val peripheral = deviceData.peripheral
|
||||
val services = deviceData.services
|
||||
Timber.tag("AAA")
|
||||
.d("Displaying device: ${peripheral.address} with services: ${services.map { it.profile }}")
|
||||
when (serviceManager.profile) {
|
||||
Profile.HRS -> FeatureButton(
|
||||
iconId = R.drawable.ic_hrs,
|
||||
|
||||
@@ -17,7 +17,6 @@ import no.nordicsemi.android.nrftoolbox.ScannerDestinationId
|
||||
import no.nordicsemi.android.service.profile.ServiceApi
|
||||
import no.nordicsemi.android.toolbox.profile.ProfileDestinationId
|
||||
import no.nordicsemi.android.toolbox.profile.repository.DeviceRepository
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
|
||||
internal data class HomeViewState(
|
||||
@@ -39,7 +38,6 @@ internal class HomeViewModel @Inject constructor(
|
||||
init {
|
||||
// Observe connected devices from the repository
|
||||
deviceRepository.connectedDevices.onEach { devices ->
|
||||
Timber.tag("AAA").d("Connected devices updated: ${devices.keys}")
|
||||
_state.update { currentState ->
|
||||
currentState.copy(connectedDevices = devices)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user