mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Fixed 'connect' button disabling with change of orientation when focus is in the URL field
This commit is contained in:
parent
5a488a8ada
commit
a4bd86cf14
1 changed files with 4 additions and 2 deletions
|
@ -269,7 +269,9 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
mOkButton.setEnabled(false);
|
||||
if (!mHostBaseUrl.equals(normalizeUrl(mHostUrlInput.getText().toString()))) {
|
||||
mOkButton.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -640,7 +642,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
url = url.substring(0, url.length() - 1);
|
||||
}
|
||||
}
|
||||
return url;
|
||||
return (url != null ? url : "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue