mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 22:59:54 +01:00
handle error when checking for existing backup
This commit is contained in:
@@ -45,18 +45,15 @@ public class DistributedBackupActivity extends BriarActivity implements
|
|||||||
db.transaction(false, txn -> {
|
db.transaction(false, txn -> {
|
||||||
BackupMetadata backupMetadata =
|
BackupMetadata backupMetadata =
|
||||||
socialBackupManager.getBackupMetadata(txn);
|
socialBackupManager.getBackupMetadata(txn);
|
||||||
if (backupMetadata == null) {
|
if (backupMetadata == null) throw new DbException();
|
||||||
CustodianSelectorFragment fragment =
|
ExistingBackupFragment fragment =
|
||||||
CustodianSelectorFragment.newInstance();
|
ExistingBackupFragment.newInstance(backupMetadata);
|
||||||
showInitialFragment(fragment);
|
showInitialFragment(fragment);
|
||||||
} else {
|
|
||||||
ExistingBackupFragment fragment =
|
|
||||||
ExistingBackupFragment.newInstance(backupMetadata);
|
|
||||||
showInitialFragment(fragment);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
} catch (DbException e) {
|
} catch (DbException e) {
|
||||||
e.printStackTrace();
|
CustodianSelectorFragment fragment =
|
||||||
|
CustodianSelectorFragment.newInstance();
|
||||||
|
showInitialFragment(fragment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user