mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
PM-1798 Fix voice over on buttons when adding new item from iOS extension (#2510)
This commit is contained in:
parent
c1673a1bbf
commit
bf463926a3
2 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,7 @@ namespace Bit.iOS.Core.Controllers
|
|||
UsernameCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
||||
UsernameCell.Button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
|
||||
UsernameCell.Button.SetTitle(BitwardenIcons.Generate, UIControlState.Normal);
|
||||
UsernameCell.Button.AccessibilityLabel = AppResources.GenerateUsername;
|
||||
UsernameCell.Button.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
LaunchUsernameGeneratorFlow();
|
||||
|
@ -86,6 +87,7 @@ namespace Bit.iOS.Core.Controllers
|
|||
PasswordCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
||||
PasswordCell.Button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
|
||||
PasswordCell.Button.SetTitle(BitwardenIcons.Generate, UIControlState.Normal);
|
||||
PasswordCell.Button.AccessibilityLabel = AppResources.GeneratePassword;
|
||||
PasswordCell.Button.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
PerformSegue("passwordGeneratorSegue", this);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using Bit.App.Resources;
|
||||
using Bit.Core;
|
||||
using Bit.iOS.Core.Controllers;
|
||||
using Bit.iOS.Core.Utilities;
|
||||
|
@ -171,10 +172,13 @@ namespace Bit.iOS.Core.Views
|
|||
var button = useSecondaryButton ? SecondButton : Button;
|
||||
button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
|
||||
button.SetTitle(BitwardenIcons.Eye, UIControlState.Normal);
|
||||
button.AccessibilityLabel = AppResources.ToggleVisibility;
|
||||
button.AccessibilityHint = AppResources.PasswordIsNotVisibleTapToShow;
|
||||
button.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
TextField.SecureTextEntry = !TextField.SecureTextEntry;
|
||||
button.SetTitle(TextField.SecureTextEntry ? BitwardenIcons.Eye : BitwardenIcons.EyeSlash, UIControlState.Normal);
|
||||
button.AccessibilityHint = TextField.SecureTextEntry ? AppResources.PasswordIsNotVisibleTapToShow : AppResources.PasswordIsVisibleTapToHide;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue