mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 10:34:07 +00:00
38 lines
960 B
C#
38 lines
960 B
C#
using System;
|
|
using Bit.Core.Resources.Localization;
|
|
using Bit.Core.Abstractions;
|
|
using Bit.Core.Services;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.App.Pages
|
|
{
|
|
public partial class AutofillSettingsPage : BaseContentPage
|
|
{
|
|
AutofillSettingsPageViewModel _vm;
|
|
|
|
public AutofillSettingsPage()
|
|
{
|
|
InitializeComponent();
|
|
_vm = BindingContext as AutofillSettingsPageViewModel;
|
|
_vm.Page = this;
|
|
}
|
|
|
|
protected async override void OnAppearing()
|
|
{
|
|
base.OnAppearing();
|
|
|
|
try
|
|
{
|
|
await _vm.InitAsync();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LoggerHelper.LogEvenIfCantBeResolved(ex);
|
|
ServiceContainer.Resolve<IPlatformUtilsService>().ShowToast(null, null, AppResources.AnErrorHasOccurred);
|
|
|
|
Navigation.PopAsync().FireAndForget();
|
|
}
|
|
}
|
|
}
|
|
}
|