Fixed authorization status message

This commit is contained in:
David A. Velasco 2013-05-16 12:42:11 +02:00
parent 17776812ee
commit 9fe217ea4a

View file

@ -1010,11 +1010,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
* to the interactions with the OAuth authorization server. * to the interactions with the OAuth authorization server.
*/ */
private void showAuthStatus() { private void showAuthStatus() {
if (mServerStatusIcon == 0 && mServerStatusText == 0) { if (mAuthStatusIcon == 0 && mAuthStatusText == 0) {
mAuthStatusLayout.setVisibility(View.INVISIBLE); mAuthStatusLayout.setVisibility(View.INVISIBLE);
} else { } else {
mAuthStatusLayout.setText(mServerStatusText); mAuthStatusLayout.setText(mAuthStatusText);
mAuthStatusLayout.setCompoundDrawablesWithIntrinsicBounds(mServerStatusIcon, 0, 0, 0); mAuthStatusLayout.setCompoundDrawablesWithIntrinsicBounds(mAuthStatusIcon, 0, 0, 0);
mAuthStatusLayout.setVisibility(View.VISIBLE); mAuthStatusLayout.setVisibility(View.VISIBLE);
} }
} }