mirror of
https://github.com/bitwarden/mobile
synced 2026-01-05 01:53:17 +00:00
Set Android InputType directly for the pin lock screen to force numeric-only keyboard layout. (#451)
* Set Android InputType directly for the pin lock screen to force numeric-only keyboard layout. * Renamed variable
This commit is contained in:
committed by
Kyle Spearrin
parent
60c5bbc73d
commit
8053e6cb81
@@ -12,7 +12,7 @@ namespace Bit.App.Controls
|
||||
{
|
||||
PlaceholderColor = Color.FromHex("c7c7cd");
|
||||
}
|
||||
|
||||
|
||||
IsPasswordFromToggled = IsPassword;
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace Bit.App.Controls
|
||||
public bool DisableAutocapitalize { get; set; }
|
||||
public bool AllowClear { get; set; }
|
||||
public bool HideCursor { get; set; }
|
||||
public bool NumbersOnly { get; set; }
|
||||
|
||||
// Need to overwrite default handler because we cant Invoke otherwise
|
||||
public new event EventHandler Completed;
|
||||
|
||||
@@ -21,7 +21,8 @@ namespace Bit.App.Controls
|
||||
{
|
||||
Keyboard = Keyboard.Numeric,
|
||||
TargetMaxLength = 4,
|
||||
HideCursor = true
|
||||
HideCursor = true,
|
||||
NumbersOnly = true
|
||||
};
|
||||
|
||||
Entry.BackgroundColor = Entry.TextColor = Color.Transparent;
|
||||
|
||||
Reference in New Issue
Block a user