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