mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 10:28:28 +03:00
formatting
This commit is contained in:
parent
a4d785258e
commit
9eba3064a7
1 changed files with 8 additions and 4 deletions
|
@ -38,11 +38,13 @@ namespace Bit.App.Pages
|
||||||
Android: "fingerprint.png",
|
Android: "fingerprint.png",
|
||||||
Windows: "smile.png");
|
Windows: "smile.png");
|
||||||
var biometricText = Helpers.OnPlatform(
|
var biometricText = Helpers.OnPlatform(
|
||||||
iOS: _deviceInfoService.HasFaceIdSupport ? AppResources.UseFaceIDToUnlock : AppResources.UseFingerprintToUnlock,
|
iOS: _deviceInfoService.HasFaceIdSupport ?
|
||||||
|
AppResources.UseFaceIDToUnlock : AppResources.UseFingerprintToUnlock,
|
||||||
Android: AppResources.UseFingerprintToUnlock,
|
Android: AppResources.UseFingerprintToUnlock,
|
||||||
Windows: AppResources.UseWindowsHelloToUnlock);
|
Windows: AppResources.UseWindowsHelloToUnlock);
|
||||||
var biometricTitle = Helpers.OnPlatform(
|
var biometricTitle = Helpers.OnPlatform(
|
||||||
iOS: _deviceInfoService.HasFaceIdSupport ? AppResources.VerifyFaceID : AppResources.VerifyFingerprint,
|
iOS: _deviceInfoService.HasFaceIdSupport ?
|
||||||
|
AppResources.VerifyFaceID : AppResources.VerifyFingerprint,
|
||||||
Android: AppResources.VerifyFingerprint,
|
Android: AppResources.VerifyFingerprint,
|
||||||
Windows: AppResources.VerifyWindowsHello);
|
Windows: AppResources.VerifyWindowsHello);
|
||||||
|
|
||||||
|
@ -103,8 +105,10 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
_lastAction = DateTime.UtcNow;
|
_lastAction = DateTime.UtcNow;
|
||||||
|
|
||||||
var fingerprintRequest = new AuthenticationRequestConfiguration(
|
var direction = _deviceInfoService.HasFaceIdSupport ?
|
||||||
_deviceInfoService.HasFaceIdSupport ? AppResources.FaceIDDirection : AppResources.FingerprintDirection)
|
AppResources.FaceIDDirection : AppResources.FingerprintDirection;
|
||||||
|
|
||||||
|
var fingerprintRequest = new AuthenticationRequestConfiguration(direction)
|
||||||
{
|
{
|
||||||
AllowAlternativeAuthentication = true,
|
AllowAlternativeAuthentication = true,
|
||||||
CancelTitle = AppResources.Cancel,
|
CancelTitle = AppResources.Cancel,
|
||||||
|
|
Loading…
Reference in a new issue