From fc1c0fc1c58b91e190fecbb178e26fbb57ddef48 Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:06:56 -0700 Subject: [PATCH] Don't create backup on first install There is no reason to create a mostly empty backup when the app is first installed. --- app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt index a73389252b1..1caaaa4c693 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt @@ -1201,6 +1201,8 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener, BiometricCa val lastAppAutoBackup: String = getKey("VERSION_NAME") ?: "" if (appVer != lastAppAutoBackup) { setKey("VERSION_NAME", BuildConfig.VERSION_NAME) + if (lastAppAutoBackup.isEmpty()) return@safe + safe { backup(this) }