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 committed Feb 26, 2024
1 parent 59d74db commit d3ab8f7
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 d3ab8f7

Please sign in to comment.