private async void UpdateStatement() { transactionsRefreshLayout.Refreshing = true; var success = await statementHandler.RefreshStatement(); if (success) { balanceView.Text = Account.Balance.ToString(); deviceAdaptor.Devices = statementHandler.Devices; if (device == null) { device = statementHandler.Devices[0]; } if (device != statementHandler.Devices[0]) { await statementHandler.TransactionsForDevice(device); } transactionAdaptor.Transactions = statementHandler.Transactions; if (deviceSpinner.Count > 1) { deviceSpinner.Enabled = true; } } transactionsRefreshLayout.Refreshing = false; }