Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to compose dev version. TextField cursor animation uses a lot of CPU. #165

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ org.jetbrains.compose.experimental.uikit.enabled=true
android.defaults.buildfeatures.buildconfig=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
compose.version=1.6.0-rc02
compose.version=1.6.0-dev1440
kotlin.version=1.9.22
multiplatform.version=1.9.22
12 changes: 6 additions & 6 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,9 @@ fun App()
globalfrndstoreunreadmsgs.try_clear_unread_per_friend_message_count(contacts.selectedContactPubkey)
}
ChatAppWithScaffold(focusRequester = focusRequester, contactList = contacts, ui_scale = ui_scale)
//LaunchedEffect(contacts.selectedContactPubkey) {
// focusRequester.requestFocus()
//}
LaunchedEffect(contacts.selectedContactPubkey) {
focusRequester.requestFocus()
}
}
}
}
Expand Down Expand Up @@ -1136,9 +1136,9 @@ fun App()
globalgrpstoreunreadmsgs.try_clear_unread_per_group_message_count(groups.selectedGroupId)
}
GroupAppWithScaffold(focusRequester = groupfocusRequester, groupList = groups, ui_scale = ui_scale)
//LaunchedEffect(groups.selectedGroupId) {
// groupfocusRequester.requestFocus()
//}
LaunchedEffect(groups.selectedGroupId) {
groupfocusRequester.requestFocus()
}
}
}
}
Expand Down
Loading