Skip to content

Commit 6d1eb3f

Browse files
shitlimegoofyz
authored andcommitted
fix: dbAdapter.type not updated when switching tabs
1 parent 751563b commit 6d1eb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/osfans/trime/ime/symbol/LiquidKeyboard.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ class LiquidKeyboard(
196196
}
197197

198198
private fun initDbData(data: suspend () -> List<DatabaseBean>) {
199+
dbAdapter.type = currentBoardType
199200
if (onAdapterChange(dbAdapter)) {
200-
dbAdapter.type = currentBoardType
201201
keyboardView.apply {
202202
layoutManager = oneColStaggeredGridLayoutManager
203203
adapter = dbAdapter

0 commit comments

Comments
 (0)