mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Remove JVMOverload in ClipboardHelper
This commit is contained in:
@@ -47,7 +47,6 @@ class ClipboardHelper(private val context: Context) {
|
|||||||
return mClipboardManager
|
return mClipboardManager
|
||||||
}
|
}
|
||||||
|
|
||||||
@JvmOverloads
|
|
||||||
fun timeoutCopyToClipboard(text: String, toastString: String = "") {
|
fun timeoutCopyToClipboard(text: String, toastString: String = "") {
|
||||||
if (toastString.isNotEmpty())
|
if (toastString.isNotEmpty())
|
||||||
Toast.makeText(context, toastString, Toast.LENGTH_LONG).show()
|
Toast.makeText(context, toastString, Toast.LENGTH_LONG).show()
|
||||||
@@ -98,7 +97,6 @@ class ClipboardHelper(private val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Throws(ClipboardException::class)
|
@Throws(ClipboardException::class)
|
||||||
@JvmOverloads
|
|
||||||
fun cleanClipboard(label: String = "") {
|
fun cleanClipboard(label: String = "") {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
getClipboardManager()?.clearPrimaryClip()
|
getClipboardManager()?.clearPrimaryClip()
|
||||||
|
|||||||
Reference in New Issue
Block a user