This commit is contained in:
Horis
2023-02-24 15:22:13 +08:00
parent b9f1ba30a3
commit b4cd2a668a
2 changed files with 7 additions and 1 deletions
@@ -180,7 +180,7 @@ interface JsEncodeUtils {
fun aesEncodeToByteArray( fun aesEncodeToByteArray(
data: String, key: String, transformation: String, iv: String data: String, key: String, transformation: String, iv: String
): ByteArray? { ): ByteArray? {
return createSymmetricCrypto(transformation, key, iv).decrypt(data) return createSymmetricCrypto(transformation, key, iv).encrypt(data)
} }
/** /**
@@ -145,6 +145,12 @@ class BookshelfManageActivity :
} }
}) })
setOnQueryTextFocusChangeListener { _, hasFocus ->
if (!hasFocus) {
searchView?.isIconified = true
showTitle()
}
}
} }
} }