mirror of
https://github.com/bitwarden/android.git
synced 2024-12-21 00:31:58 +03:00
pin lock page modifications
This commit is contained in:
parent
89e4189779
commit
15e154feb0
4 changed files with 20 additions and 3 deletions
|
@ -76,6 +76,12 @@ namespace Bit.App
|
|||
{
|
||||
CheckLockAsync(false);
|
||||
}
|
||||
|
||||
var lockPage = Current.MainPage.Navigation.ModalStack.LastOrDefault() as LockPinPage;
|
||||
if(lockPage != null)
|
||||
{
|
||||
lockPage.PinControl.Entry.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
private async Task CheckLockAsync(bool forceLock)
|
||||
|
|
|
@ -24,8 +24,8 @@ namespace Bit.App.Controls
|
|||
Entry = new ExtendedEntry
|
||||
{
|
||||
Keyboard = Keyboard.Numeric,
|
||||
IsVisible = false,
|
||||
MaxLength = 4
|
||||
MaxLength = 4,
|
||||
Margin = new Thickness(0, int.MaxValue, 0, 0)
|
||||
};
|
||||
Entry.SetBinding<PinPageModel>(Xamarin.Forms.Entry.TextProperty, s => s.PIN);
|
||||
Entry.TextChanged += PinEntry_TextChanged;
|
||||
|
|
|
@ -55,6 +55,11 @@ namespace Bit.App.Pages
|
|||
Content = stackLayout;
|
||||
}
|
||||
|
||||
protected override bool OnBackButtonPressed()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace Bit.App.Pages
|
|||
{
|
||||
Padding = new Thickness(30, 40),
|
||||
Spacing = 10,
|
||||
Children = { PinControl.Label, PinControl.Entry, logoutButton }
|
||||
Children = { PinControl.Label, logoutButton, PinControl.Entry }
|
||||
};
|
||||
|
||||
Title = "Verify PIN";
|
||||
|
@ -54,6 +54,12 @@ namespace Bit.App.Pages
|
|||
BindingContext = Model;
|
||||
}
|
||||
|
||||
|
||||
protected override bool OnBackButtonPressed()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
|
|
Loading…
Reference in a new issue