File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
app/src/main/java/com/osfans/trime/ime/symbol Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ object TabManager {
43
43
}
44
44
45
45
fun refresh () {
46
+ reset()
47
+
46
48
val available = theme.liquid.getList(" keyboards" ) ? : return
47
49
for (item in available) {
48
50
val id = item?.configValue?.getString() ? : " "
@@ -54,13 +56,18 @@ object TabManager {
54
56
val keys = keyboard[" keys" ]
55
57
addTabHasKeys(name, type, keys)
56
58
}
57
- tabSwitchData.clear()
58
59
tabSwitchData.addAll(
59
60
tabTags.filter { SymbolKeyboardType .hasKeys(it.type) }
60
61
.map { SimpleKeyBean (it.text) },
61
62
)
62
63
}
63
64
65
+ private fun reset () {
66
+ tabTags.clear()
67
+ keyboards.clear()
68
+ tabSwitchData.clear()
69
+ }
70
+
64
71
private fun addListTab (
65
72
name : String ,
66
73
type : SymbolKeyboardType ,
You can’t perform that action at this time.
0 commit comments