From d396bbf7720c9706d5130e34c62e27d4a8d06e29 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 7 Feb 2019 08:52:56 +0100 Subject: [PATCH] dialog committed with allow state loss Signed-off-by: tobiasKaminsky --- .../android/authentication/AuthenticatorActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java index 78a9a8f31e..a7760cdffc 100644 --- a/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -1305,9 +1305,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity } /// be gentle with the user - IndeterminateProgressDialog dialog = - IndeterminateProgressDialog.newInstance(R.string.auth_trying_to_login, true); - dialog.show(getSupportFragmentManager(), WAIT_DIALOG_TAG); + IndeterminateProgressDialog dialog = IndeterminateProgressDialog.newInstance(R.string.auth_trying_to_login, + true); + FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); + ft.add(dialog, WAIT_DIALOG_TAG); + ft.commitAllowingStateLoss(); /// validate credentials accessing the root folder OwnCloudCredentials credentials = OwnCloudCredentialsFactory.newBasicCredentials(username, password);