Updated on 2026-08-14
This commit is contained in:
commit
c7350af463
3 changed files with 13 additions and 12 deletions
|
|
@ -190,6 +190,7 @@ private fun prepareAllowedSecurityOptions(
|
|||
|
||||
if (card?.isTangemTwin() == true) {
|
||||
allowedSecurityOptions.add(SecurityOption.PassCode)
|
||||
allowedSecurityOptions.add(SecurityOption.LongTap)
|
||||
}
|
||||
if ((currentSecurityOption == SecurityOption.LongTap) || !prohibitDefaultPin) {
|
||||
allowedSecurityOptions.add(SecurityOption.LongTap)
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ class AccessCodeDialog(context: Context) : BottomSheetDialog(context) {
|
|||
|
||||
fun showInfoScreen() {
|
||||
behavior.state = BottomSheetBehavior.STATE_EXPANDED
|
||||
access_code_title.text = context.getText(R.string.onboarding_access_code_intro_title)
|
||||
layout_backup_access_code_info.show()
|
||||
layout_backup_access_code_submit.hide()
|
||||
btn_access_code_create.setOnClickListener {
|
||||
|
|
@ -43,6 +44,7 @@ class AccessCodeDialog(context: Context) : BottomSheetDialog(context) {
|
|||
fun showEnterAccessCode() {
|
||||
layout_backup_access_code_info.hide()
|
||||
layout_backup_access_code_submit.show()
|
||||
access_code_title.text = context.getText(R.string.onboarding_access_code_intro_title)
|
||||
btn_access_code_submit.text = context.getText(R.string.common_continue)
|
||||
btn_access_code_submit.setOnClickListener {
|
||||
store.dispatch(BackupAction.CheckAccessCode(et_access_code.text.toString()))
|
||||
|
|
@ -52,6 +54,7 @@ class AccessCodeDialog(context: Context) : BottomSheetDialog(context) {
|
|||
fun showReenterAccessCode() {
|
||||
layout_backup_access_code_info.hide()
|
||||
layout_backup_access_code_submit.show()
|
||||
access_code_title.text = context.getText(R.string.onboarding_access_code_repeat_code_title)
|
||||
et_access_code.setText("")
|
||||
btn_access_code_submit.text = context.getText(R.string.common_submit)
|
||||
btn_access_code_submit.setOnClickListener {
|
||||
|
|
|
|||
|
|
@ -78,30 +78,27 @@
|
|||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/imv_second_backup_card"
|
||||
android:layout_width="296dp"
|
||||
android:layout_height="186dp"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/card_placeholder_black"
|
||||
android:src="@drawable/card_placeholder_new"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/imv_first_backup_card"
|
||||
android:layout_width="296dp"
|
||||
android:layout_height="186dp"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/card_placeholder_black"
|
||||
android:src="@drawable/card_placeholder_new"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/imv_front_card"
|
||||
android:layout_width="296dp"
|
||||
android:layout_height="186dp"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/card_placeholder_black"
|
||||
android:src="@drawable/card_placeholder_new"
|
||||
android:transitionName="imv_front_card"
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue