Skip to content

Commit c4943a1

Browse files
committed
disable un-implemented code and do some chore [#85]
1 parent 415226d commit c4943a1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

presenter/src/main/java/com/foke/together/presenter/screen/SettingScreen.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ fun SettingScreen(
170170
modifier = Modifier.width(300.dp),
171171
value = "",
172172
onValueChange = { },
173-
label = { Text(text = "Email") }
173+
label = { Text(text = "Email") },
174+
enabled = false
174175
)
175176

176177
Spacer(modifier = Modifier.height(16.dp))
@@ -179,7 +180,8 @@ fun SettingScreen(
179180
modifier = Modifier.width(300.dp),
180181
value = "",
181182
onValueChange = { },
182-
label = { Text(text = "Password") }
183+
label = { Text(text = "Password") },
184+
enabled = false
183185
)
184186

185187
TextButton(
@@ -192,7 +194,8 @@ fun SettingScreen(
192194
colors = ButtonDefaults.textButtonColors(
193195
containerColor = MaterialTheme.colorScheme.primary, // Button background color
194196
contentColor = MaterialTheme.colorScheme.onPrimary // Text color
195-
)
197+
),
198+
enabled = false
196199
) {
197200
Text(text = "Log In")
198201
}
@@ -207,7 +210,8 @@ fun SettingScreen(
207210
modifier = Modifier.width(300.dp),
208211
value = AppPolicy.CAPTURE_INTERVAL.toString(),
209212
onValueChange = { },
210-
label = { Text(text = "Capture Interval") }
213+
label = { Text(text = "Capture Interval") },
214+
enabled = false
211215
)
212216
}
213217
}

presenter/src/main/java/com/foke/together/presenter/viewmodel/SettingViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ class SettingViewModel @Inject constructor(
3434
started = SharingStarted.WhileSubscribed(5000),
3535
replay = 1
3636
)
37+
// TODO: check to remove
3738
val cameraIPAddress = getExternalCameraIPUseCase().shareIn(
3839
scope = viewModelScope,
3940
started = SharingStarted.WhileSubscribed(5000),
4041
replay = 1
4142
)
42-
var cameraIPAddressState by mutableStateOf("1234")
43+
var cameraIPAddressState by mutableStateOf("")
4344

4445
init {
4546
viewModelScope.launch(ioDispatcher) {

0 commit comments

Comments
 (0)