mirror of
https://github.com/bitwarden/android.git
synced 2024-12-29 12:28:31 +03:00
38 lines
954 B
C#
38 lines
954 B
C#
|
using System;
|
|||
|
using Bit.App.Resources;
|
|||
|
using Bit.Core.Abstractions;
|
|||
|
using Bit.Core.Services;
|
|||
|
using Bit.Core.Utilities;
|
|||
|
|
|||
|
namespace Bit.App.Pages
|
|||
|
{
|
|||
|
public partial class SecuritySettingsPage : BaseContentPage
|
|||
|
{
|
|||
|
private SecuritySettingsPageViewModel _vm;
|
|||
|
|
|||
|
public SecuritySettingsPage()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
_vm = BindingContext as SecuritySettingsPageViewModel;
|
|||
|
_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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|