From 71563eddfedb60eb1b18d09ac942ab54bcbd9fd0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 29 Nov 2017 10:05:48 +0000 Subject: [PATCH] Import: fix crash when import finishes while the app is minimised. --- .../etesync/syncadapter/ui/importlocal/ImportActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportActivity.java b/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportActivity.java index a13e4fdc..c3ac7400 100644 --- a/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportActivity.java +++ b/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportActivity.java @@ -105,7 +105,9 @@ public class ImportActivity extends BaseActivity implements SelectImportMethod, @Override public void onImportResult(ResultFragment.ImportResult importResult) { ResultFragment fragment = ResultFragment.newInstance(importResult); - fragment.show(getSupportFragmentManager(), null); + getSupportFragmentManager().beginTransaction() + .show(fragment) + .commitAllowingStateLoss(); } @Override