1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-29 04:07:37 +02:00
bitwarden-mobile/src/iOS.Autofill/SetupViewController.cs

40 lines
1.2 KiB
C#
Raw Normal View History

2019-06-28 14:21:44 +02: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 21:12:40 +02:00
public SetupViewController(IntPtr handle)
: base(handle)
2019-06-28 14:21:44 +02: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 21:12:40 +02:00
DescriptionLabel.TextColor = ThemeHelpers.MutedColor;
2019-06-28 14:21:44 +02:00
ActivatedLabel.Text = AppResources.AutofillActivated;
ActivatedLabel.Font = UIFont.FromDescriptor(descriptor, descriptor.PointSize * 1.3f);
BackButton.Title = AppResources.Back;
base.ViewDidLoad();
var task = ASHelpers.ReplaceAllIdentities();
}
partial void BackButton_Activated(UIBarButtonItem sender)
{
CPViewController.CompleteRequest();
}
}
}