bitwarden-android/src/iOS.Autofill/SetupViewController.cs

41 lines
1.3 KiB
C#
Raw Normal View History

2019-06-28 15:21:44 +03:00
using System;
using UIKit;
using Bit.iOS.Core.Controllers;
using Bit.App.Resources;
using Bit.iOS.Core.Utilities;
namespace Bit.iOS.Autofill
{
public partial class SetupViewController : ExtendedUIViewController
{
2019-07-01 22:12:40 +03:00
public SetupViewController(IntPtr handle)
: base(handle)
2019-06-28 15:21:44 +03:00
{ }
public CredentialProviderViewController CPViewController { get; set; }
public override void ViewDidLoad()
{
var descriptor = UIFontDescriptor.PreferredBody;
DescriptionLabel.Text = $@"{AppResources.AutofillSetup}
{AppResources.AutofillSetup2}";
DescriptionLabel.Font = UIFont.FromDescriptor(descriptor, descriptor.PointSize);
2019-07-01 22:12:40 +03:00
DescriptionLabel.TextColor = ThemeHelpers.MutedColor;
2019-06-28 15:21:44 +03:00
ActivatedLabel.Text = AppResources.AutofillActivated;
ActivatedLabel.Font = UIFont.FromDescriptor(descriptor, descriptor.PointSize * 1.3f);
2019-07-01 22:12:40 +03:00
ActivatedLabel.TextColor = ThemeHelpers.SuccessColor;
2019-06-28 15:21:44 +03:00
BackButton.Title = AppResources.Back;
base.ViewDidLoad();
var task = ASHelpers.ReplaceAllIdentities();
}
partial void BackButton_Activated(UIBarButtonItem sender)
{
CPViewController.CompleteRequest();
}
}
}