Skip to content

Commit

Permalink
disable un-implemented code and do some chore [#85]
Browse files Browse the repository at this point in the history
  • Loading branch information
DokySp committed Oct 11, 2024
1 parent 415226d commit c4943a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ fun SettingScreen(
modifier = Modifier.width(300.dp),
value = "",
onValueChange = { },
label = { Text(text = "Email") }
label = { Text(text = "Email") },
enabled = false
)

Spacer(modifier = Modifier.height(16.dp))
Expand All @@ -179,7 +180,8 @@ fun SettingScreen(
modifier = Modifier.width(300.dp),
value = "",
onValueChange = { },
label = { Text(text = "Password") }
label = { Text(text = "Password") },
enabled = false
)

TextButton(
Expand All @@ -192,7 +194,8 @@ fun SettingScreen(
colors = ButtonDefaults.textButtonColors(
containerColor = MaterialTheme.colorScheme.primary, // Button background color
contentColor = MaterialTheme.colorScheme.onPrimary // Text color
)
),
enabled = false
) {
Text(text = "Log In")
}
Expand All @@ -207,7 +210,8 @@ fun SettingScreen(
modifier = Modifier.width(300.dp),
value = AppPolicy.CAPTURE_INTERVAL.toString(),
onValueChange = { },
label = { Text(text = "Capture Interval") }
label = { Text(text = "Capture Interval") },
enabled = false
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ class SettingViewModel @Inject constructor(
started = SharingStarted.WhileSubscribed(5000),
replay = 1
)
// TODO: check to remove
val cameraIPAddress = getExternalCameraIPUseCase().shareIn(
scope = viewModelScope,
started = SharingStarted.WhileSubscribed(5000),
replay = 1
)
var cameraIPAddressState by mutableStateOf("1234")
var cameraIPAddressState by mutableStateOf("")

init {
viewModelScope.launch(ioDispatcher) {
Expand Down

0 comments on commit c4943a1

Please sign in to comment.