#265 unlocking vaults after changing OneDrive password displays error
This should be still enhanced by displaying the login screen but is already better than being stuck in a black screen.
This commit is contained in:
parent
a217e58f94
commit
8d6bc95073
@ -152,7 +152,7 @@ public abstract class MSAAuthAndroidAdapter implements IAuthenticationAdapter {
|
|||||||
public void onAuthComplete(final LiveStatus status, final LiveConnectSession session, final Object userState) {
|
public void onAuthComplete(final LiveStatus status, final LiveConnectSession session, final Object userState) {
|
||||||
Timber.tag("MSAAuthAndroidAdapter").d(String.format("LiveStatus: %s, LiveConnectSession good?: %s, UserState %s", status, session != null, userState));
|
Timber.tag("MSAAuthAndroidAdapter").d(String.format("LiveStatus: %s, LiveConnectSession good?: %s, UserState %s", status, session != null, userState));
|
||||||
|
|
||||||
if (status == LiveStatus.NOT_CONNECTED) {
|
if (status == LiveStatus.NOT_CONNECTED && session.getRefreshToken() == null) {
|
||||||
Timber.tag("MSAAuthAndroidAdapter").d("Received invalid login failure from silent authentication, ignoring.");
|
Timber.tag("MSAAuthAndroidAdapter").d("Received invalid login failure from silent authentication, ignoring.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,9 @@ class AuthenticateCloudPresenter @Inject constructor( //
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun failAuthentication(cloudName: Int) {
|
private fun failAuthentication(cloudName: Int) {
|
||||||
|
activity().runOnUiThread {
|
||||||
view?.showMessage(String.format(getString(R.string.screen_authenticate_auth_authentication_failed), getString(cloudName)))
|
view?.showMessage(String.format(getString(R.string.screen_authenticate_auth_authentication_failed), getString(cloudName)))
|
||||||
|
}
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,9 @@ class AuthenticateCloudPresenter @Inject constructor( //
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun failAuthentication(cloudName: Int) {
|
private fun failAuthentication(cloudName: Int) {
|
||||||
|
activity().runOnUiThread {
|
||||||
view?.showMessage(String.format(getString(R.string.screen_authenticate_auth_authentication_failed), getString(cloudName)))
|
view?.showMessage(String.format(getString(R.string.screen_authenticate_auth_authentication_failed), getString(cloudName)))
|
||||||
|
}
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user