File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/backups Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ class BackupsViewModel(
83
83
fun refresh (context : Context ) {
84
84
val oldDir = context.getExternalFilesDir(null )
85
85
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
88
88
@SuppressLint(" SdCardPath" )
89
89
val externalDir = File (" /sdcard/KernelFlasher" )
90
90
val backupsDir = fileSystemManager.getFile(" $externalDir /backups" )
You can’t perform that action at this time.
0 commit comments