Skip to content

Commit

Permalink
🐛 Fixed the issue where duplicate md5 pasted items were not deleted (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang authored Feb 26, 2024
1 parent dfa30d8 commit df92441
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ fun ClipPreviewsView() {
}
}
}

changes.deletions
changes.deletionRanges

val iterator = rememberClipDataList.iterator()
while (iterator.hasNext()) {
val clipData = iterator.next()
if (clipDao.getClipData(clipData.id) == null) {
iterator.remove()
}
}
}
else -> {
// types other than UpdatedResults are not changes -- ignore them
Expand Down

0 comments on commit df92441

Please sign in to comment.