1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-26 05:03:39 +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:
ShirokaiLon
2019-01-24 19:45:42 +00:00
committed by Kyle Spearrin
parent 60c5bbc73d
commit 8053e6cb81
3 changed files with 9 additions and 2 deletions

View File

@@ -66,6 +66,11 @@ namespace Bit.Android.Controls
Control.SetRawInputType(InputTypes.TextFlagNoSuggestions | InputTypes.TextVariationVisiblePassword);
}
if(_view.NumbersOnly)
{
Control.SetRawInputType(InputTypes.ClassNumber | InputTypes.NumberVariationPassword);
}
_view.ToggleIsPassword += ToggleIsPassword;
if(_view.FontFamily == "monospace")