Beautify biometric auth settings
This commit is contained in:
parent
067b8eddde
commit
74d41c9a12
@ -1,7 +1,7 @@
|
||||
package org.cryptomator.presentation.ui.adapter
|
||||
|
||||
import android.view.View
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial
|
||||
import android.widget.Switch
|
||||
import org.cryptomator.presentation.R
|
||||
import org.cryptomator.presentation.model.VaultModel
|
||||
import org.cryptomator.presentation.model.comparator.VaultPositionComparator
|
||||
@ -54,7 +54,7 @@ constructor() : RecyclerViewBaseAdapter<VaultModel, BiometricAuthSettingsAdapter
|
||||
|
||||
//itemView.toggleBiometricAuth.setOnCheckedChangeListener doesn't work because bind can be executed multiple times
|
||||
itemView.toggleBiometricAuth.setOnClickListener { switch ->
|
||||
onVaultBiometricAuthSettingsChanged?.onVaultBiometricAuthSettingsChanged(vaultModel, (switch as SwitchMaterial).isChecked)
|
||||
onVaultBiometricAuthSettingsChanged?.onVaultBiometricAuthSettingsChanged(vaultModel, (switch as Switch).isChecked)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="17dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
<LinearLayout
|
||||
@ -22,12 +22,12 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_toStartOf="@+id/toggleBiometricAuth"
|
||||
android:text="@string/screen_settings_activate_biometric_auth"
|
||||
android:textSize="16sp" />
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
<Switch
|
||||
android:id="@+id/toggleBiometricAuth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@ -46,12 +46,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginEnd="46dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_toStartOf="@+id/toggleFaceUnlockConfirmation"
|
||||
android:text="@string/screen_settings_confirm_face_unlock"
|
||||
android:textSize="16sp" />
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
<Switch
|
||||
android:id="@+id/toggleFaceUnlockConfirmation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@ -71,8 +72,7 @@
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/rv_biometric_auth_settings"
|
||||
android:layout_marginTop="16dp">
|
||||
android:layout_below="@id/rv_biometric_auth_settings">
|
||||
|
||||
<include
|
||||
layout="@layout/recycler_view_layout"
|
||||
|
@ -1,14 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="51dp">
|
||||
android:layout_height="72dp"
|
||||
android:background="?android:attr/selectableItemBackground">
|
||||
|
||||
<ImageButton
|
||||
<ImageView
|
||||
android:id="@+id/cloud"
|
||||
android:layout_width="@dimen/thumbnail_size"
|
||||
android:layout_height="@dimen/thumbnail_size"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@android:color/transparent" />
|
||||
android:layout_marginStart="16dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vaultName"
|
||||
@ -16,15 +17,15 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_toStartOf="@id/toggleBiometricAuth"
|
||||
android:layout_toEndOf="@+id/cloud"
|
||||
android:ellipsize="middle"
|
||||
android:singleLine="true"
|
||||
android:textSize="20sp" />
|
||||
android:textSize="18sp" />
|
||||
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
<Switch
|
||||
android:id="@+id/toggleBiometricAuth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
Loading…
x
Reference in New Issue
Block a user