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,8 +269,10 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
if (!mHostBaseUrl.equals(normalizeUrl(mHostUrlInput.getText().toString()))) {
|
||||
mOkButton.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
|
||||
|
@ -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