We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f4ab3a commit 41c203cCopy full SHA for 41c203c
samples/hwgeneration/src/main/java/com/myscript/iink/samples/hwgeneration/EditorViewModel.kt
@@ -214,6 +214,7 @@ class EditorViewModel(application: Application) : AndroidViewModel(application)
214
}
215
216
fun setSelectionMode(enabled: Boolean) {
217
+ editor?.waitForIdle()
218
if (enabled) {
219
editor?.toolController?.setToolForType(PointerType.PEN, PointerTool.SELECTOR)
220
} else {
0 commit comments