mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +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)
|
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),
|
||||||
|
|
|
@ -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 :
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue