Skip to content
Snippets Groups Projects
Commit ad5bd8a6 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Remove copies of default clipboard entry

parent 85d5365e
No related branches found
No related tags found
No related merge requests found
......@@ -267,6 +267,9 @@ class ClipboardHistoryManager(val context: Context, val coroutineScope: Lifecycl
(!it.pinned) && (it.timestamp < minimumTimestamp)
}
// Remove copies of default clipboard entry (TODO: this can be removed eventually)
if(clipboardHistory.count { it == DefaultClipboardEntry } > 1)
clipboardHistory.removeAll { it == DefaultClipboardEntry }
val maxItems = 25
val numUnpinnedItems = clipboardHistory.filter { !it.pinned }.size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment