mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
properly background unregister call
This commit is contained in:
parent
12e3214f70
commit
40cfb9876d
1 changed files with 2 additions and 2 deletions
|
@ -215,13 +215,13 @@ namespace Bit.App
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void Logout(string logoutMessage)
|
private void Logout(string logoutMessage)
|
||||||
{
|
{
|
||||||
_authService.LogOut();
|
_authService.LogOut();
|
||||||
|
|
||||||
var deviceApiRepository = Resolver.Resolve<IDeviceApiRepository>();
|
var deviceApiRepository = Resolver.Resolve<IDeviceApiRepository>();
|
||||||
var appIdService = Resolver.Resolve<IAppIdService>();
|
var appIdService = Resolver.Resolve<IAppIdService>();
|
||||||
await Task.Run(() => deviceApiRepository.PutClearTokenAsync(appIdService.AppId)).ConfigureAwait(false);
|
Task.Run(async () => await deviceApiRepository.PutClearTokenAsync(appIdService.AppId));
|
||||||
|
|
||||||
_googleAnalyticsService.TrackAppEvent("LoggedOut");
|
_googleAnalyticsService.TrackAppEvent("LoggedOut");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue