Horis 3 лет назад
Родитель
Сommit
3e24fbadc6

+ 1 - 1
app/src/main/java/io/legado/app/help/JsEncodeUtils.kt

@@ -180,7 +180,7 @@ interface JsEncodeUtils {
     fun aesEncodeToByteArray(
         data: String, key: String, transformation: String, iv: String
     ): ByteArray? {
-        return createSymmetricCrypto(transformation, key, iv).decrypt(data)
+        return createSymmetricCrypto(transformation, key, iv).encrypt(data)
     }
 
     /**

+ 6 - 0
app/src/main/java/io/legado/app/ui/book/manage/BookshelfManageActivity.kt

@@ -145,6 +145,12 @@ class BookshelfManageActivity :
                 }
 
             })
+            setOnQueryTextFocusChangeListener { _, hasFocus ->
+                if (!hasFocus) {
+                    searchView?.isIconified = true
+                    showTitle()
+                }
+            }
         }
     }