Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 440afb88 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

ConfirmDeviceCredential should default to setRequireConfirmation(true)

If the value is unset, we should maintain the same default behavior
as BiometricPrompt, which is to dfeault to requiring confirmation.

Fixes: 123598496

Test: manual
Change-Id: Icaf27d184e0aea5eee077b8ec14bca27fd0ddad3
parent 3a7cbacd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -125,7 +125,8 @@ public class BiometricFragment extends InstrumentedFragment {
            .setUseDefaultTitle() // use default title if title is null/empty
            .setSubtitle(mBundle.getString(BiometricPrompt.KEY_SUBTITLE))
            .setDescription(mBundle.getString(BiometricPrompt.KEY_DESCRIPTION))
            .setRequireConfirmation(mBundle.getBoolean(BiometricPrompt.KEY_REQUIRE_CONFIRMATION))
            .setRequireConfirmation(
                    mBundle.getBoolean(BiometricPrompt.KEY_REQUIRE_CONFIRMATION, true))
            .setNegativeButton(getResources().getString(
                    R.string.confirm_device_credential_use_alternate_method),
                    mClientExecutor, mNegativeButtonListener)