1
0
Fork 1

catch outdated backup exception in ImportBackupActivity (Daniel Gultsch)

(cherry picked from commit 799647a721)
This commit is contained in:
12aw 2024-02-06 16:04:40 +01:00
parent f11f7e73f4
commit 8113d2674a

View file

@ -164,6 +164,7 @@ public class ImportBackupService extends Service {
if (files == null) {
continue;
}
Log.d(Config.LOGTAG, "looking for backups in " + directory);
for (final File file : files) {
if (file.isFile() && file.getName().endsWith(".ceb")) {
Log.d(Config.LOGTAG, "Backup files: " + directory.getAbsolutePath() + "/" + file);
@ -174,7 +175,9 @@ public class ImportBackupService extends Service {
} else {
backupFiles.add(backupFile);
}
} catch (IOException | IllegalArgumentException e) {
} catch (final IOException
| IllegalArgumentException
| BackupFileHeader.OutdatedBackupFileVersion e) {
Log.d(Config.LOGTAG, "unable to read backup file ", e);
}
}