Added visibility toggle to Account's Autentication and STUN/TURN Passwords

This commit is contained in:
Juha Heinanen
2020-11-12 12:06:49 +02:00
parent 11803ad0ae
commit 0927d9ea8d
+26 -16
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ScrollView <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/AccountView" android:id="@+id/AccountView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@@ -77,15 +77,20 @@
android:text="@string/authentication_password" > android:text="@string/authentication_password" >
</TextView> </TextView>
<EditText <com.google.android.material.textfield.TextInputLayout
android:id="@+id/AuthPass" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/password" app:hintEnabled="false"
android:textSize="18sp" app:endIconMode="password_toggle">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/AuthPass"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="textPassword" android:inputType="textPassword"
android:importantForAutofill="no" android:hint="@string/password"
android:layout_width="fill_parent"> android:maxLines="1">
</EditText> </androidx.appcompat.widget.AppCompatEditText>
</com.google.android.material.textfield.TextInputLayout>
<TextView <TextView
android:id="@+id/OutboundProxyTitle" android:id="@+id/OutboundProxyTitle"
@@ -246,15 +251,20 @@
android:text="@string/stun_password" > android:text="@string/stun_password" >
</TextView> </TextView>
<EditText <com.google.android.material.textfield.TextInputLayout
android:id="@+id/StunPass" android:layout_width="match_parent"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/password" app:hintEnabled="false"
android:textSize="18sp" app:endIconMode="password_toggle">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/StunPass"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="textPassword" android:inputType="textPassword"
android:importantForAutofill="no" > android:hint="@string/password"
</EditText> android:maxLines="1">
</androidx.appcompat.widget.AppCompatEditText>
</com.google.android.material.textfield.TextInputLayout>
<RelativeLayout <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"