mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
Placeholder drawable for 'hide password' button replace with the final icon
This commit is contained in:
parent
7160a49e20
commit
0e133233f3
3 changed files with 4 additions and 2 deletions
BIN
res/drawable/ic_hide.png
Normal file
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
BIN
res/drawable/ic_view.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -476,9 +476,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||||
|
|
||||||
|
|
||||||
private void showViewPasswordButton() {
|
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()) {
|
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);
|
mPasswordInput.setCompoundDrawablesWithIntrinsicBounds(0, 0, drawable, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue