]> git.ktnx.net Git - mobile-ledger.git/commitdiff
allow toggling password visibility in profile details
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 1 Sep 2019 09:23:32 +0000 (12:23 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 1 Sep 2019 09:23:32 +0000 (12:23 +0300)
app/src/main/res/layout/profile_detail.xml

index 3479cf07430fa22f981517eb40b4701cb3e7082f..49068d47741c487e49f10906cda346ff75c49d21 100644 (file)
@@ -17,6 +17,7 @@
 
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/profile_detail"
     style="?android:attr/textAppearanceLarge"
     android:layout_width="match_parent"
                 android:id="@+id/password_layout"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:orientation="vertical">
+                android:orientation="vertical"
+                app:passwordToggleEnabled="true">
 
                 <com.google.android.material.textfield.TextInputEditText
                     android:id="@+id/password"
                     android:layout_height="wrap_content"
                     android:ems="10"
                     android:hint="@string/pref_title_backend_auth_password"
-                    android:inputType="textPassword" />
+                    android:inputType="textWebPassword" />
 
             </com.google.android.material.textfield.TextInputLayout>