mirror of
https://github.com/bitwarden/android.git
synced 2025-01-01 05:48:34 +03:00
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
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
|
|
{
|
|
public SetupViewController(IntPtr handle)
|
|
: base(handle)
|
|
{ }
|
|
|
|
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);
|
|
DescriptionLabel.TextColor = ThemeHelpers.MutedColor;
|
|
|
|
ActivatedLabel.Text = AppResources.AutofillActivated;
|
|
ActivatedLabel.Font = UIFont.FromDescriptor(descriptor, descriptor.PointSize * 1.3f);
|
|
ActivatedLabel.TextColor = ThemeHelpers.SuccessColor;
|
|
|
|
BackButton.Title = AppResources.Back;
|
|
base.ViewDidLoad();
|
|
var task = ASHelpers.ReplaceAllIdentities();
|
|
}
|
|
|
|
partial void BackButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
CPViewController.CompleteRequest();
|
|
}
|
|
}
|
|
}
|