mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-26 03:46:46 -08:00
First pass migration SDK 29
This commit is contained in:
1 parent
452e68b08f
commit
e351456bfe
4 files changed
+11
-10
No files matched your search
@@ -493,10 +493,11 @@ class Database {
|
||||
var outputStream: OutputStream? = null
|
||||
try {
|
||||
outputStream = contentResolver.openOutputStream(uri)
|
||||
val pmo =
|
||||
mDatabaseKDB?.let { DatabaseOutputKDB(it, outputStream) }
|
||||
?: mDatabaseKDBX?.let { DatabaseOutputKDBX(it, outputStream) }
|
||||
pmo?.output()
|
||||
outputStream?.let { definedOutputStream ->
|
||||
val databaseOutput = mDatabaseKDB?.let { DatabaseOutputKDB(it, definedOutputStream) }
|
||||
?: mDatabaseKDBX?.let { DatabaseOutputKDBX(it, definedOutputStream) }
|
||||
databaseOutput?.output()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
throw IOException(e)
|
||||
} finally {
|
||||
|
||||
@@ -45,7 +45,7 @@ class EntryInfo : Parcelable {
|
||||
password = parcel.readString() ?: password
|
||||
url = parcel.readString() ?: url
|
||||
notes = parcel.readString() ?: notes
|
||||
parcel.readList(customFields, Field::class.java.classLoader)
|
||||
parcel.readList(customFields as List<Field>, Field::class.java.classLoader)
|
||||
otpModel = parcel.readParcelable(OtpModel::class.java.classLoader) ?: otpModel
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ class ClipboardHelper(private val context: Context) {
|
||||
@Throws(ClipboardException::class)
|
||||
fun copyToClipboard(label: String, value: String) {
|
||||
try {
|
||||
getClipboardManager()?.primaryClip = ClipData.newPlainText(label, value)
|
||||
getClipboardManager()?.setPrimaryClip(ClipData.newPlainText(label, value))
|
||||
} catch (e: Exception) {
|
||||
throw ClipboardException(e)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user