mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
fixes for UWP
This commit is contained in:
parent
029c6fcfe3
commit
022eba2c05
4 changed files with 5 additions and 4 deletions
|
@ -92,7 +92,7 @@ namespace Bit.App.Pages
|
|||
if((await _fingerprint.GetAvailabilityAsync()) == FingerprintAvailability.Available)
|
||||
{
|
||||
var fingerprintName = Helpers.OnPlatform(iOS: AppResources.TouchID, Android: AppResources.Fingerprint,
|
||||
WinPhone: AppResources.Fingerprint);
|
||||
Windows: AppResources.Fingerprint, WinPhone: AppResources.Fingerprint);
|
||||
FingerprintCell = new ExtendedSwitchCell
|
||||
{
|
||||
Text = string.Format(AppResources.UnlockWith, fingerprintName),
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace Bit.App.Pages
|
|||
AppResources.BitwardenAppExtensionDescription, "upload.png");
|
||||
section.Add(ExtensionCell);
|
||||
}
|
||||
else
|
||||
if(Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
var desc = _deviceInfoService.AutofillServiceSupported ?
|
||||
AppResources.BitwardenAutofillServiceDescription :
|
||||
|
|
|
@ -211,7 +211,6 @@ namespace Bit.App.Services
|
|||
{
|
||||
CipherService.CachedCiphers = null;
|
||||
_tokenService.Token = null;
|
||||
_tokenService.RefreshToken = null;
|
||||
UserId = null;
|
||||
Email = null;
|
||||
_cryptoService.ClearKeys();
|
||||
|
|
|
@ -117,13 +117,15 @@ namespace Bit.UWP
|
|||
container.RegisterSingleton<ISettingsApiRepository, SettingsApiRepository>();
|
||||
container.RegisterSingleton<ITwoFactorApiRepository, TwoFactorApiRepository>();
|
||||
container.RegisterSingleton<ISyncApiRepository, SyncApiRepository>();
|
||||
container.RegisterSingleton<ICollectionRepository, CollectionRepository>();
|
||||
container.RegisterSingleton<ICipherCollectionRepository, CipherCollectionRepository>();
|
||||
|
||||
// Other
|
||||
container.RegisterSingleton(CrossConnectivity.Current);
|
||||
container.RegisterSingleton(UserDialogs.Instance);
|
||||
container.RegisterSingleton(CrossFingerprint.Current);
|
||||
|
||||
container.RegisterSingleton<ISettings>(Plugin.Settings.CrossSettings.Current);
|
||||
container.RegisterSingleton(Plugin.Settings.CrossSettings.Current);
|
||||
|
||||
// Push
|
||||
var pushListener = new PushNotificationListener();
|
||||
|
|
Loading…
Reference in a new issue