Esempio n. 1
0
        private async Task SwitchedAccountAsync()
        {
            await AppHelpers.OnAccountSwitchAsync();

            await Device.InvokeOnMainThreadAsync(async() =>
            {
                if (await _vaultTimeoutService.ShouldTimeoutAsync())
                {
                    await _vaultTimeoutService.ExecuteTimeoutActionAsync();
                }
                else
                {
                    await NavigateOnAccountChangeAsync();
                }
                await Task.Delay(50);
                await _accountsManagerHost.UpdateThemeAsync();
            });
        }
Esempio n. 2
0
        private async Task SwitchedAccountAsync()
        {
            await AppHelpers.OnAccountSwitchAsync();

            Device.BeginInvokeOnMainThread(async() =>
            {
                if (await _vaultTimeoutService.ShouldTimeoutAsync())
                {
                    await _vaultTimeoutService.ExecuteTimeoutActionAsync();
                }
                else
                {
                    await SetMainPageAsync();
                }
                await Task.Delay(50);
                await UpdateThemeAsync();
            });
        }