mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix removing active clipboard item
This commit is contained in:
parent
ed550eec4b
commit
aa025b92e8
@ -329,7 +329,7 @@ class ClipboardHistoryManager(val context: Context, val coroutineScope: Lifecycl
|
||||
// Clear the clipboard if the item being removed is the current one
|
||||
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
// TODO: URI
|
||||
if(item.text != null && item.text == clipboardManager.primaryClip?.getItemAt(0)?.coerceToText(context)) {
|
||||
if((item.text != null) && item.text == clipboardManager.primaryClip?.getItemAt(0)?.coerceToText(context)?.toString()) {
|
||||
clipboardManager.clearPrimaryClip()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user