Skip to content

Commit 0d47133

Browse files
committed
Update Kotlin to 2.1.10: Fix Annotation issue 2
1 parent fc49c31 commit 0d47133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/backups/BackupsViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ class BackupsViewModel(
8383
fun refresh(context: Context) {
8484
val oldDir = context.getExternalFilesDir(null)
8585
val oldBackupsDir = File(oldDir, "backups")
86-
@Deprecated("Backup migration will be removed in the first stable release", level = DeprecationLevel.WARNING)
87-
_needsMigration.value = oldBackupsDir.exists() && (oldBackupsDir.listFiles()?.isNotEmpty() == true)
86+
// Deprecated: Backup migration will be removed in the first stable release
87+
_needsMigration.value = oldBackupsDir.exists() && oldBackupsDir.listFiles()?.size!! > 0
8888
@SuppressLint("SdCardPath")
8989
val externalDir = File("/sdcard/KernelFlasher")
9090
val backupsDir = fileSystemManager.getFile("$externalDir/backups")

0 commit comments

Comments
 (0)