Skip to content

Commit 2d99df6

Browse files
committed
fix: update onUpdateClick to handle topic changes
1 parent 48a666f commit 2d99df6

File tree

1 file changed

+19
-19
lines changed
  • ui/src/main/java/com/github/umercodez/sensorspot/ui/screens/settings

1 file changed

+19
-19
lines changed

ui/src/main/java/com/github/umercodez/sensorspot/ui/screens/settings/SettingsScreen.kt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
/*
2-
* This file is a part of SensorSpot (https://www.github.com/UmerCodez/SensorSpot)
3-
* Copyright (C) 2025 Umer Farooq (umerfarooq2383@gmail.com)
4-
*
5-
* SensorSpot is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
9-
*
10-
* SensorSpot is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with SensorSpot. If not, see <https://www.gnu.org/licenses/>.
17-
*
18-
*/
1+
/*
2+
* This file is a part of SensorSpot (https://www.github.com/UmerCodez/SensorSpot)
3+
* Copyright (C) 2025 Umer Farooq (umerfarooq2383@gmail.com)
4+
*
5+
* SensorSpot is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* SensorSpot is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with SensorSpot. If not, see <https://www.gnu.org/licenses/>.
17+
*
18+
*/
1919
package com.github.umercodez.sensorspot.ui.screens.settings
2020

2121
import androidx.compose.animation.AnimatedVisibility
@@ -92,7 +92,7 @@ fun SettingsScreen(
9292
isError = { value ->
9393
value.isEmpty()
9494
},
95-
onUpdateClick = { onEvent(SettingsScreenEvent.OnBrokerPortChange(it.toInt())) },
95+
onUpdateClick = { onEvent(SettingsScreenEvent.OnTopicChange(it)) }
9696
)
9797

9898
ListItem(

0 commit comments

Comments
 (0)