Skip to content

Commit

Permalink
Increase 'verify by biometric' click area (#3674)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tougee authored Apr 10, 2023
1 parent 606e8dd commit 2c17b93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,14 @@ fun PinKeyBoard(
}
}
if (showBiometric) {
Spacer(modifier = Modifier.height(4.dp))
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier
.padding(horizontal = 12.dp, vertical = 3.dp)
.clip(
shape = RoundedCornerShape(4.dp),
)
.clickable { onBiometricClick?.invoke() },
.clickable { onBiometricClick?.invoke() }
.padding(start = 20.dp, end = 20.dp, top = 8.dp, bottom = 20.dp),
) {
Image(
painter = painterResource(R.drawable.ic_biometric),
Expand All @@ -260,9 +259,7 @@ fun PinKeyBoard(
color = MixinAppTheme.colors.textBlue,
)
}
Spacer(modifier = Modifier.height(8.dp))
}
Spacer(modifier = Modifier.height(12.dp))
}
} else {
Box(
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/layout_pin_biometric.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="12dp"
android:layout_marginBottom="8dp"
app:pin_tipVisible="false" />

<TextView
android:id="@+id/biometric_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:paddingTop="10dp"
android:paddingBottom="20dp"
android:drawablePadding="@dimen/padding8"
android:text="@string/Verify_by_Biometric"
android:textColor="@color/wallet_blue_secondary"
Expand Down

0 comments on commit 2c17b93

Please sign in to comment.