From 8feee43a15f925c45aa0e2e930fe9b3d4d0de297 Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Sun, 10 Mar 2024 11:32:24 -0600 Subject: [PATCH] Fix nonTransferableKeys in BackupUtils --- .../com/lagradost/cloudstream3/utils/BackupUtils.kt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt index db001ef5..b86e0693 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/BackupUtils.kt @@ -65,13 +65,16 @@ object BackupUtils { PLUGINS_KEY_LOCAL, OPEN_SUBTITLES_USER_KEY, - "nginx_user", // Nginx user key + + DOWNLOAD_EPISODE_CACHE, + "biometric_key" // can lock down users if backup is shared on a incompatible device + "nginx_user", // Nginx user key ) - /** false if blacklisted key */ + /** false if key should not be contained in backup */ private fun String.isTransferable(): Boolean { - return !nonTransferableKeys.contains(this) + return !nonTransferableKeys.any { this.contains(it) } } private var restoreFileSelector: ActivityResultLauncher>? = null @@ -257,4 +260,4 @@ object BackupUtils { setKeyRaw(it.key, it.value, isEditingAppSettings) } } -} \ No newline at end of file +}