From 2e92422ea6e44cf9e9645fde0b342356c2ae48fb Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 22 Jan 2018 16:35:57 +0000 Subject: [PATCH] Import: fix showing the import finished dialog. --- .../etesync/syncadapter/ui/importlocal/ImportActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 c3ac7400..c98ffc31 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,9 +105,7 @@ public class ImportActivity extends BaseActivity implements SelectImportMethod, @Override public void onImportResult(ResultFragment.ImportResult importResult) { ResultFragment fragment = ResultFragment.newInstance(importResult); - getSupportFragmentManager().beginTransaction() - .show(fragment) - .commitAllowingStateLoss(); + fragment.show(getSupportFragmentManager(), "importResult"); } @Override