mirror of
https://github.com/bitwarden/android.git
synced 2025-01-06 08:17:34 +03:00
28 lines
889 B
C#
28 lines
889 B
C#
|
using System;
|
||
|
using UIKit;
|
||
|
|
||
|
namespace Bit.iOS.Extension
|
||
|
{
|
||
|
public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController
|
||
|
{
|
||
|
public LockPasswordViewController(IntPtr handle) : base(handle)
|
||
|
{ }
|
||
|
|
||
|
public LoadingViewController LoadingController { get; set; }
|
||
|
public override UINavigationItem BaseNavItem => NavItem;
|
||
|
public override UIBarButtonItem BaseCancelButton => CancelButton;
|
||
|
public override UIBarButtonItem BaseSubmitButton => SubmitButton;
|
||
|
public override Action Success => () => LoadingController.DismissLockAndContinue();
|
||
|
|
||
|
partial void SubmitButton_Activated(UIBarButtonItem sender)
|
||
|
{
|
||
|
CheckPassword();
|
||
|
}
|
||
|
|
||
|
partial void CancelButton_Activated(UIBarButtonItem sender)
|
||
|
{
|
||
|
LoadingController.CompleteRequest(null);
|
||
|
}
|
||
|
}
|
||
|
}
|