catch outdated backup exception in ImportBackupActivity (Daniel Gultsch)
(cherry picked from commit 799647a721
)
This commit is contained in:
parent
f11f7e73f4
commit
8113d2674a
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue