Capture exception to avoid crash after clear clipboard

This commit is contained in:
J-Jamet
2020-02-08 17:39:08 +01:00
parent 56daf6f676
commit d0371f58c6

View File

@@ -208,7 +208,7 @@ class ClipboardEntryNotificationService : LockNotificationService() {
private fun cleanClipboard() {
try {
clipboardHelper?.cleanClipboard()
} catch (e: ClipboardException) {
} catch (e: Exception) {
Log.e(TAG, "Clipboard can't be cleaned", e)
}
}