Merge pull request #2361 from omnivore-app/fix/android-labels-field

Focus labels textfield when opening on Android
This commit is contained in:
Jackson Harper 2023-06-14 21:50:28 +08:00 committed by GitHub
commit 7fd75a02ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -153,7 +153,7 @@ dependencies {
kapt "androidx.room:room-compiler:$room_version"
implementation 'com.github.jeziellago:compose-markdown:0.3.3'
implementation "io.github.dokar3:chiptextfield:0.4.6"
implementation "io.github.dokar3:chiptextfield:0.4.7"
}
apollo {

View file

@ -389,6 +389,6 @@ fun LabelsSelectionSheetContent(
}
}
LaunchedEffect(Unit) {
state.focusTextField()
}
}

View file

@ -183,7 +183,8 @@ fun EditNoteModal(initialValue: String?, onDismiss: (save: Boolean, text: String
.fillMaxSize(),
value = annotation.value, onValueChange = { annotation.value = it },
colors = TextFieldDefaults.textFieldColors(
textColor = Color.White
focusedTextColor = Color.White,
unfocusedTextColor = Color.White,
)
)
}