1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-26 12:16:07 +01:00

use fingerprintButtonText on extension unlock

This commit is contained in:
Kyle Spearrin 2019-07-22 10:24:18 -04:00
parent 762b574d49
commit e7ce050324

View File

@ -84,9 +84,6 @@ namespace Bit.iOS.Core.Controllers
if(_fingerprintLock)
{
var fingerprintButtonText = _deviceActionService.SupportsFaceId() ? AppResources.UseFaceIDToUnlock :
AppResources.UseFingerprintToUnlock;
// TODO: set button text
var tasks = Task.Run(async () =>
{
await Task.Delay(500);
@ -252,9 +249,11 @@ namespace Bit.iOS.Core.Controllers
{
if(indexPath.Row == 0)
{
var fingerprintButtonText = _controller._deviceActionService.SupportsFaceId() ?
AppResources.UseFaceIDToUnlock : AppResources.UseFingerprintToUnlock;
var cell = new ExtendedUITableViewCell();
cell.TextLabel.TextColor = ThemeHelpers.PrimaryColor;
cell.TextLabel.Text = AppResources.UseFingerprintToUnlock;
cell.TextLabel.Text = fingerprintButtonText;
return cell;
}
}