End icon mode cannot be changed dynamically

Due to a 2 year old bug in material components:

https://github.com/material-components/material-components-android/issues/503
This commit is contained in:
M66B
2021-08-15 17:56:19 +02:00
parent 5f43b00a9c
commit de53031696
6 changed files with 11 additions and 11 deletions

View File

@@ -192,8 +192,9 @@ public class FragmentPop extends FragmentBase {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (TextUtils.isEmpty(s))
tilPassword.setEndIconMode(END_ICON_PASSWORD_TOGGLE);
// https://github.com/material-components/material-components-android/issues/503
//if (TextUtils.isEmpty(s))
// tilPassword.setEndIconMode(END_ICON_PASSWORD_TOGGLE);
}
@Override