1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-10 13:23:39 +00:00

fixes for theme handling on account switching and re-adding existing account

This commit is contained in:
Matt Portune
2022-01-18 14:50:04 -05:00
parent 1c6a8964fe
commit ed2bb9b94e
3 changed files with 10 additions and 0 deletions

View File

@@ -110,6 +110,10 @@ namespace Bit.App
{
await AddAccount();
}
else if (message.Command == "accountAdded")
{
UpdateTheme();
}
else if (message.Command == "switchedAccount")
{
await SwitchedAccountAsync();

View File

@@ -483,6 +483,11 @@ namespace Bit.App.Utilities
settingsService.ClearAsync(userId),
vaultTimeoutService.ClearAsync(userId),
stateService.ClearAsync(userId));
if (await stateService.GetActiveUserIdAsync() != null)
{
var messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
messagingService.Send("switchedAccount");
}
}
stateService.BiometricLocked = true;
searchService.ClearIndex();

View File

@@ -370,6 +370,7 @@ namespace Bit.Core.Services
}
)
);
_messagingService.Send("accountAdded");
if (_setCryptoKeys)
{
if (key != null)