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(
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" )
You can’t perform that action at this time.
0 commit comments