Closed shubertm closed 4 months ago
We were having null primaryClip from clipboard causing the clipboardTextEmpty value to be wrong
null
primaryClip
clipboardTextEmpty
private fun observeClipboardContent() { context?.getTextFromClipBoard(view) { val clipboardTextEmpty = it.isNullOrEmpty() if (clipboardTextEmpty) { binding.tvPaste.alpha = 0.4f binding.tvPaste.isClickable = false } else { binding.tvPaste.alpha = 1f binding.tvPaste.isClickable = true } enableSaveText(!clipboardTextEmpty && isContentChanged()) } }
Android 10 Clipboard Changes
We were having
null
primaryClip
from clipboard causing theclipboardTextEmpty
value to be wrongAndroid 10 Clipboard Changes