diff --git a/app/src/main/java/it/netknights/piauthenticator/presenter/Presenter.java b/app/src/main/java/it/netknights/piauthenticator/presenter/Presenter.java index c3e3331..ee2c034 100644 --- a/app/src/main/java/it/netknights/piauthenticator/presenter/Presenter.java +++ b/app/src/main/java/it/netknights/piauthenticator/presenter/Presenter.java @@ -720,7 +720,7 @@ public void authenticationFinished(boolean success, Token token) { /** * Cancel the running Authentication Task and remove the pair from the runningAuthentications List - * + * Sets the tokens 'lastAuthHadError' so the authentication can be dismissed * @param token token of the pair */ private void deleteRunningAuthenticationFor(Token token) { @@ -735,6 +735,7 @@ private void deleteRunningAuthenticationFor(Token token) { toDelete.second.cancel(true); runningAuthentications.remove(toDelete); } + token.lastAuthHadError = true; token.state = FINISHED; }