user dialogs removed from DI on auth service

This commit is contained in:
Kyle Spearrin 2017-11-29 16:55:55 -05:00
parent 00f0a7589c
commit aa61331181

View file

@ -11,6 +11,7 @@ using Xamarin.Forms;
using Bit.App.Pages; using Bit.App.Pages;
using Bit.App.Controls; using Bit.App.Controls;
using Acr.UserDialogs; using Acr.UserDialogs;
using XLabs.Ioc;
namespace Bit.App.Services namespace Bit.App.Services
{ {
@ -31,7 +32,6 @@ namespace Bit.App.Services
private readonly IDeviceInfoService _deviceInfoService; private readonly IDeviceInfoService _deviceInfoService;
private readonly IDeviceApiRepository _deviceApiRepository; private readonly IDeviceApiRepository _deviceApiRepository;
private readonly IGoogleAnalyticsService _googleAnalyticsService; private readonly IGoogleAnalyticsService _googleAnalyticsService;
private readonly IUserDialogs _userDialogs;
private string _email; private string _email;
private string _userId; private string _userId;
@ -48,8 +48,7 @@ namespace Bit.App.Services
IAppIdService appIdService, IAppIdService appIdService,
IDeviceInfoService deviceInfoService, IDeviceInfoService deviceInfoService,
IDeviceApiRepository deviceApiRepository, IDeviceApiRepository deviceApiRepository,
IGoogleAnalyticsService googleAnalyticsService, IGoogleAnalyticsService googleAnalyticsService)
IUserDialogs userDialogs)
{ {
_secureStorage = secureStorage; _secureStorage = secureStorage;
_tokenService = tokenService; _tokenService = tokenService;
@ -61,7 +60,6 @@ namespace Bit.App.Services
_deviceInfoService = deviceInfoService; _deviceInfoService = deviceInfoService;
_deviceApiRepository = deviceApiRepository; _deviceApiRepository = deviceApiRepository;
_googleAnalyticsService = googleAnalyticsService; _googleAnalyticsService = googleAnalyticsService;
_userDialogs = userDialogs;
} }
public string UserId public string UserId
@ -225,7 +223,7 @@ namespace Bit.App.Services
Device.BeginInvokeOnMainThread(() => Application.Current.MainPage = new ExtendedNavigationPage(new HomePage())); Device.BeginInvokeOnMainThread(() => Application.Current.MainPage = new ExtendedNavigationPage(new HomePage()));
if(!string.IsNullOrWhiteSpace(logoutMessage)) if(!string.IsNullOrWhiteSpace(logoutMessage))
{ {
_userDialogs.Toast(logoutMessage); Resolver.Resolve<IUserDialogs>()?.Toast(logoutMessage);
} }
} }