Skip to content

Commit 104daea

Browse files
author
if-can
committed
fix: clipboard update listener, not updating data as expected after copying existing text
1 parent 25b3795 commit 104daea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/osfans/trime/data/db/ClipboardHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ object ClipboardHelper :
141141
launch {
142142
mutex.withLock {
143143
clbDao.find(b.text)?.let {
144-
updateLastBean(it.copy(time = b.time))
145144
clbDao.updateTime(it.id, b.time)
145+
updateLastBean(it.copy(time = b.time))
146146
return@launch
147147
}
148148
val rowId = clbDao.insert(b)

0 commit comments

Comments
 (0)