mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Call stop_io()/start_io() before/after backup export
should ideally be merged before https://github.com/deltachat/deltachat-core-rust/pull/2255, but that's not too important I tested key import/export and backup import/export, all work fine.
This commit is contained in:
@@ -120,6 +120,7 @@ public abstract class ListSummaryPreferenceFragment extends CorrectedPreferenceF
|
||||
progressDialog.show();
|
||||
|
||||
imexDir = dcContext.getImexDir().getAbsolutePath();
|
||||
dcContext.stopIo();
|
||||
dcContext.captureNextError();
|
||||
dcContext.imex(progressWhat, imexDir);
|
||||
}
|
||||
@@ -130,6 +131,7 @@ public abstract class ListSummaryPreferenceFragment extends CorrectedPreferenceF
|
||||
long progress = event.getData1Int();
|
||||
if (progress==0/*error/aborted*/) {
|
||||
dcContext.endCaptureNextError();
|
||||
dcContext.maybeStartIo();
|
||||
progressDialog.dismiss();
|
||||
progressDialog = null;
|
||||
if (dcContext.hasCapturedError()) {
|
||||
@@ -149,6 +151,7 @@ public abstract class ListSummaryPreferenceFragment extends CorrectedPreferenceF
|
||||
}
|
||||
else if (progress==1000/*done*/) {
|
||||
dcContext.endCaptureNextError();
|
||||
dcContext.maybeStartIo();
|
||||
progressDialog.dismiss();
|
||||
progressDialog = null;
|
||||
notificationController.close();
|
||||
|
||||
Reference in New Issue
Block a user