Skip to content

Instantly share code, notes, and snippets.

@LethalMaus
Created January 15, 2026 22:07
Show Gist options
  • Select an option

  • Save LethalMaus/0dc05d57763537e1e32eee9ecb12f8fe to your computer and use it in GitHub Desktop.

Select an option

Save LethalMaus/0dc05d57763537e1e32eee9ecb12f8fe to your computer and use it in GitHub Desktop.
SyncProfileButton.kt
OutlinedTextField(
value = username,
onValueChange = { username = it },
label = { Text("User / login name") }
)
Button(onClick = {
val value = if (username.isBlank()) "Phone User" else username
manager.syncUserProfile(UserProfile(value))
}) {
Text("Sync profile to watch")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment