Fixed 'connect' button disabling with change of orientation when focus is in the URL field

This commit is contained in:
David A. Velasco 2013-05-21 14:25:08 +02:00
parent 5a488a8ada
commit a4bd86cf14

View file

@ -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 : "");
}
/**