Skip to content

Commit

Permalink
fix: clipboard update listener, not updating data as expected after c…
Browse files Browse the repository at this point in the history
…opying existing text
  • Loading branch information
if-can committed Jan 12, 2025
1 parent 25b3795 commit 104daea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ object ClipboardHelper :
launch {
mutex.withLock {
clbDao.find(b.text)?.let {
updateLastBean(it.copy(time = b.time))
clbDao.updateTime(it.id, b.time)
updateLastBean(it.copy(time = b.time))
return@launch
}
val rowId = clbDao.insert(b)
Expand Down

0 comments on commit 104daea

Please sign in to comment.