Browse Source

ProfileDownloadFragment: Hide all inputs except SM-DP+ address as passwords

Peter Cai 2 years ago
parent
commit
51357d945b
1 changed files with 6 additions and 2 deletions
  1. 6 2
      app/src/main/res/layout/fragment_profile_download.xml

+ 6 - 2
app/src/main/res/layout/fragment_profile_download.xml

@@ -66,11 +66,13 @@
         app:layout_constraintTop_toBottomOf="@id/profile_download_server"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintRight_toRightOf="parent"
-        app:layout_constraintWidth_percent=".8">
+        app:layout_constraintWidth_percent=".8"
+        app:passwordToggleEnabled="true">
 
         <com.google.android.material.textfield.TextInputEditText
             android:layout_width="match_parent"
             android:layout_height="match_parent"
+            android:inputType="textPassword"
             android:theme="@style/Theme.OpenEUICC.Input.Cursor"/>
 
     </com.google.android.material.textfield.TextInputLayout>
@@ -85,11 +87,13 @@
         app:layout_constraintTop_toBottomOf="@id/profile_download_code"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintRight_toRightOf="parent"
-        app:layout_constraintWidth_percent=".8">
+        app:layout_constraintWidth_percent=".8"
+        app:passwordToggleEnabled="true">
 
         <com.google.android.material.textfield.TextInputEditText
             android:layout_width="match_parent"
             android:layout_height="match_parent"
+            android:inputType="textPassword"
             android:theme="@style/Theme.OpenEUICC.Input.Cursor"/>
 
     </com.google.android.material.textfield.TextInputLayout>