mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 05:43:30 +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();
|
await AddAccount();
|
||||||
}
|
}
|
||||||
|
else if (message.Command == "accountAdded")
|
||||||
|
{
|
||||||
|
UpdateTheme();
|
||||||
|
}
|
||||||
else if (message.Command == "switchedAccount")
|
else if (message.Command == "switchedAccount")
|
||||||
{
|
{
|
||||||
await SwitchedAccountAsync();
|
await SwitchedAccountAsync();
|
||||||
|
|||||||
@@ -483,6 +483,11 @@ namespace Bit.App.Utilities
|
|||||||
settingsService.ClearAsync(userId),
|
settingsService.ClearAsync(userId),
|
||||||
vaultTimeoutService.ClearAsync(userId),
|
vaultTimeoutService.ClearAsync(userId),
|
||||||
stateService.ClearAsync(userId));
|
stateService.ClearAsync(userId));
|
||||||
|
if (await stateService.GetActiveUserIdAsync() != null)
|
||||||
|
{
|
||||||
|
var messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
|
||||||
|
messagingService.Send("switchedAccount");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stateService.BiometricLocked = true;
|
stateService.BiometricLocked = true;
|
||||||
searchService.ClearIndex();
|
searchService.ClearIndex();
|
||||||
|
|||||||
@@ -370,6 +370,7 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
_messagingService.Send("accountAdded");
|
||||||
if (_setCryptoKeys)
|
if (_setCryptoKeys)
|
||||||
{
|
{
|
||||||
if (key != null)
|
if (key != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user