Home | History | Annotate | Download | only in ui

Lines Matching refs:ACCOUNT

20 import com.android.mail.providers.Account;
61 private static final String ACCOUNT = "name";
62 private static final String[] COLUMN_NAMES = { ACCOUNT };
73 // Boolean to indicate that we are waiting for the result from an add account
107 // we should set the title to "Select account".
114 // if we display the account list
221 // No account found, show Add Account screen, for both the widget or
223 // No account found, show Add Account screen, for both the widget or
229 // No reason to display the account list
232 // Indicate that we need to handle the response from the add account action
237 // When configuring a widget, if there is only one account, automatically
238 // choose that account.
240 selectAccount(Account.builder().buildFrom(accounts));
241 // No reason to display the account list
260 final Account account = Account.builder().buildFrom((Cursor) getItem(position));
261 accountView.setText(account.getDisplayName());
271 selectAccount(Account.builder().buildFrom((Cursor) mAdapter.getItem(position)));
274 private void selectAccount(Account account) {
285 intent.putExtra(FolderSelectionActivity.EXTRA_ACCOUNT_SHORTCUT, account);
289 // TODO: (mindyp) handle changing the account for this shortcut.
313 // We were waiting for the user to create an account
325 private void showWaitFragment(Account account) {
328 fragment.updateAccount(account);
331 replaceFragment(WaitFragment.newInstance(account, false /* expectingMessages */),
368 Account account;
369 ArrayList<Account> accounts = new ArrayList<Account>();
370 ArrayList<Account> initializedAccounts = new ArrayList<Account>();
372 account = Account.builder().buildFrom(data);
373 if (account.isAccountReady()) {
374 initializedAccounts.add(account);
376 accounts.add(account);
385 account = accounts.size() > 0 ? accounts.get(0) : null;
386 showWaitFragment(account);