1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-05 10:03:26 +00:00

make sure PIN doesnt show on screen. adjust focus.

This commit is contained in:
Kyle Spearrin
2017-12-11 14:29:50 -05:00
parent 0c4c8534b4
commit 25b75fd6e4
5 changed files with 19 additions and 3 deletions

View File

@@ -56,6 +56,7 @@ namespace Bit.App.Controls
public bool? Autocorrect { get; set; }
public bool DisableAutocapitalize { get; set; }
public bool AllowClear { get; set; }
public bool HideCursor { get; set; }
// Need to overwrite default handler because we cant Invoke otherwise
public new event EventHandler Completed;

View File

@@ -21,13 +21,19 @@ namespace Bit.App.Controls
{
Keyboard = Keyboard.Numeric,
MaxLength = 4,
Margin = new Thickness(0, int.MaxValue, 0, 0)
HideCursor = true
};
Entry.BackgroundColor = Entry.TextColor = Color.Transparent;
if(Device.RuntimePlatform == Device.Android)
{
Label.TextColor = Color.Black;
}
else
{
Entry.Margin = new Thickness(0, int.MaxValue, 0, 0);
}
}
public Label Label { get; set; }