Bladeren bron

[fix]键盘插件,修复键盘选择列表,默认没有勾选中通用键盘的问题

hezihao 7 maanden geleden
bovenliggende
commit
3211891080

+ 1 - 2
plugins/keyboard_android/android/src/main/kotlin/com/atmob/keyboard_android/mvvm/viewmodel/KeyboardViewModel.kt

@@ -245,8 +245,7 @@ class KeyboardViewModel : ViewModel() {
                 }.toList()
                 // 勾选默认键盘
                 if (systemKeyboard.isNotEmpty()) {
-                    val keyboardInfo = infos.first()
-                    keyboardInfo.isSelect = true
+                    systemKeyboard.first().isSelect = true
                 }
             }
             _keyboardList.value = infos