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:
@@ -110,6 +110,10 @@ namespace Bit.App
|
||||
{
|
||||
await AddAccount();
|
||||
}
|
||||
else if (message.Command == "accountAdded")
|
||||
{
|
||||
UpdateTheme();
|
||||
}
|
||||
else if (message.Command == "switchedAccount")
|
||||
{
|
||||
await SwitchedAccountAsync();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -370,6 +370,7 @@ namespace Bit.Core.Services
|
||||
}
|
||||
)
|
||||
);
|
||||
_messagingService.Send("accountAdded");
|
||||
if (_setCryptoKeys)
|
||||
{
|
||||
if (key != null)
|
||||
|
||||
Reference in New Issue
Block a user