fixes for UWP

This commit is contained in:
Kyle Spearrin 2017-11-28 21:27:57 -05:00
parent 029c6fcfe3
commit 022eba2c05
4 changed files with 5 additions and 4 deletions

View file

@ -92,7 +92,7 @@ namespace Bit.App.Pages
if((await _fingerprint.GetAvailabilityAsync()) == FingerprintAvailability.Available) if((await _fingerprint.GetAvailabilityAsync()) == FingerprintAvailability.Available)
{ {
var fingerprintName = Helpers.OnPlatform(iOS: AppResources.TouchID, Android: AppResources.Fingerprint, var fingerprintName = Helpers.OnPlatform(iOS: AppResources.TouchID, Android: AppResources.Fingerprint,
WinPhone: AppResources.Fingerprint); Windows: AppResources.Fingerprint, WinPhone: AppResources.Fingerprint);
FingerprintCell = new ExtendedSwitchCell FingerprintCell = new ExtendedSwitchCell
{ {
Text = string.Format(AppResources.UnlockWith, fingerprintName), Text = string.Format(AppResources.UnlockWith, fingerprintName),

View file

@ -49,7 +49,7 @@ namespace Bit.App.Pages
AppResources.BitwardenAppExtensionDescription, "upload.png"); AppResources.BitwardenAppExtensionDescription, "upload.png");
section.Add(ExtensionCell); section.Add(ExtensionCell);
} }
else if(Device.RuntimePlatform == Device.Android)
{ {
var desc = _deviceInfoService.AutofillServiceSupported ? var desc = _deviceInfoService.AutofillServiceSupported ?
AppResources.BitwardenAutofillServiceDescription : AppResources.BitwardenAutofillServiceDescription :

View file

@ -211,7 +211,6 @@ namespace Bit.App.Services
{ {
CipherService.CachedCiphers = null; CipherService.CachedCiphers = null;
_tokenService.Token = null; _tokenService.Token = null;
_tokenService.RefreshToken = null;
UserId = null; UserId = null;
Email = null; Email = null;
_cryptoService.ClearKeys(); _cryptoService.ClearKeys();

View file

@ -117,13 +117,15 @@ namespace Bit.UWP
container.RegisterSingleton<ISettingsApiRepository, SettingsApiRepository>(); container.RegisterSingleton<ISettingsApiRepository, SettingsApiRepository>();
container.RegisterSingleton<ITwoFactorApiRepository, TwoFactorApiRepository>(); container.RegisterSingleton<ITwoFactorApiRepository, TwoFactorApiRepository>();
container.RegisterSingleton<ISyncApiRepository, SyncApiRepository>(); container.RegisterSingleton<ISyncApiRepository, SyncApiRepository>();
container.RegisterSingleton<ICollectionRepository, CollectionRepository>();
container.RegisterSingleton<ICipherCollectionRepository, CipherCollectionRepository>();
// Other // Other
container.RegisterSingleton(CrossConnectivity.Current); container.RegisterSingleton(CrossConnectivity.Current);
container.RegisterSingleton(UserDialogs.Instance); container.RegisterSingleton(UserDialogs.Instance);
container.RegisterSingleton(CrossFingerprint.Current); container.RegisterSingleton(CrossFingerprint.Current);
container.RegisterSingleton<ISettings>(Plugin.Settings.CrossSettings.Current); container.RegisterSingleton(Plugin.Settings.CrossSettings.Current);
// Push // Push
var pushListener = new PushNotificationListener(); var pushListener = new PushNotificationListener();