Placeholder drawable for 'hide password' button replace with the final icon

This commit is contained in:
David A. Velasco 2013-05-24 12:47:39 +02:00
parent 7160a49e20
commit 0e133233f3
3 changed files with 4 additions and 2 deletions

BIN
res/drawable/ic_hide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/drawable/ic_view.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -476,9 +476,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
private void showViewPasswordButton() {
int drawable = android.R.drawable.ic_menu_view;
//int drawable = android.R.drawable.ic_menu_view;
int drawable = R.drawable.ic_view;
if (isPasswordVisible()) {
drawable = android.R.drawable.ic_secure;
//drawable = android.R.drawable.ic_secure;
drawable = R.drawable.ic_hide;
}
mPasswordInput.setCompoundDrawablesWithIntrinsicBounds(0, 0, drawable, 0);
}