mirror of
https://github.com/nextcloud/android.git
synced 2024-12-03 14:30:21 +03:00
OC-1080: Message 'Server does not support this authentication method' should be there although orientation of the device is changed
This commit is contained in:
parent
46674d32fe
commit
11389ddeb2
1 changed files with 11 additions and 3 deletions
|
@ -159,6 +159,8 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
|
|||
private View mOkButton;
|
||||
|
||||
private String mAuthToken;
|
||||
|
||||
private boolean mResumed; // Control if activity is resumed
|
||||
|
||||
|
||||
/**
|
||||
|
@ -212,6 +214,7 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
|
|||
}
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
mResumed = false;
|
||||
/// connection state and info
|
||||
mServerStatusText = mServerStatusIcon = 0;
|
||||
mServerIsValid = false;
|
||||
|
@ -237,6 +240,7 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
|
|||
}
|
||||
|
||||
} else {
|
||||
mResumed = true;
|
||||
/// connection state and info
|
||||
mServerIsValid = savedInstanceState.getBoolean(KEY_SERVER_VALID);
|
||||
mServerIsChecked = savedInstanceState.getBoolean(KEY_SERVER_CHECKED);
|
||||
|
@ -313,16 +317,20 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
|
|||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
if (!mResumed) {
|
||||
mAuthStatusIcon = 0;
|
||||
mAuthStatusText = 0;
|
||||
showAuthStatus();
|
||||
showAuthStatus();
|
||||
}
|
||||
mResumed = false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
mPasswordInput.setOnFocusChangeListener(this);
|
||||
mPasswordInput.setImeOptions(EditorInfo.IME_ACTION_DONE);
|
||||
mPasswordInput.setOnEditorActionListener(this);
|
||||
|
|
Loading…
Reference in a new issue