Skip to content

Commit

Permalink
fix: clipboard view cache exists, switching clipboards after copying …
Browse files Browse the repository at this point in the history
…text not update data to show newly copied content
  • Loading branch information
if-can committed Jan 12, 2025
1 parent 104daea commit 7af9597
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,15 @@ class LiquidKeyboard(
}

fun select(i: Int) {
if (TabManager.currentTabIndex == i) return
val tag = TabManager.tabTags[i]
if (TabManager.currentTabIndex == i) {
if (tag.type == SymbolBoardType.CLIPBOARD) {
service.lifecycleScope.launch {
dbAdapter.submitList(ClipboardHelper.getAll())
}
}
return
}
currentBoardType = tag.type
liquidLayout.tabsUi.activateTab(i)
val data = TabManager.selectTabByIndex(i)
Expand Down

0 comments on commit 7af9597

Please sign in to comment.