Skip to content

Commit 91860d2

Browse files
authored
Merge pull request #40 from wordpress-mobile/fix/9905_Crash_InflateException_Binary_XML_file_line_NEW
Fix password drawable on login screen
2 parents 4959021 + f9d21bb commit 91860d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/login/src/main/java/org/wordpress/android/login/widgets/WPLoginInputRow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ private void init(Context context, AttributeSet attrs) {
7979
mEditText.setHintTextColor(getResources().getColor(android.R.color.transparent));
8080
}
8181
if (a.hasValue(R.styleable.wpLoginInputRow_passwordToggleEnabled)) {
82-
mTextInputLayout.setPasswordVisibilityToggleEnabled(
83-
a.getBoolean(R.styleable.wpLoginInputRow_passwordToggleEnabled, false));
82+
mTextInputLayout.setEndIconMode(TextInputLayout.END_ICON_PASSWORD_TOGGLE);
83+
mTextInputLayout.setEndIconDrawable(R.drawable.selector_password_visibility);
8484
}
8585

8686
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {

0 commit comments

Comments
 (0)