Lines Matching refs:accountId

116         public void onMessagingError(final long accountId, long mailboxId, final String message) {
121 public void onRefreshStatusChanged(long accountId, long mailboxId) {
210 long accountId = getUIAccountId();
211 Preferences.getPreferences(mActivity).setLastUsedAccountId(accountId);
212 showAccountSpecificWarning(accountId);
528 * @param accountId ID of the account to load. Can be {@link Account#ACCOUNT_ID_COMBINED_VIEW}.
533 public final void switchAccount(long accountId, boolean forceShowInbox) {
535 if (Account.isSecurityHold(mActivity, accountId)) {
536 ActivityHelper.showSecurityHoldDialog(mActivity, accountId);
541 if (accountId == getUIAccountId() && !forceShowInbox) {
545 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) {
546 openMailbox(accountId, Mailbox.QUERY_ALL_INBOXES);
548 long inboxId = Mailbox.findMailboxOfType(mActivity, accountId, Mailbox.TYPE_INBOX);
552 Log.w(Logging.LOG_TAG, "Account " + accountId +" doesn't have Inbox. Redirecting"
554 Welcome.actionOpenAccountInbox(mActivity, accountId);
557 openMailbox(accountId, inboxId);
563 Preferences.getPreferences(mActivity).setLastUsedAccountId(accountId);
564 showAccountSpecificWarning(accountId);
592 protected final void openMailbox(long accountId, long mailboxId) {
593 open(MessageListContext.forMailbox(accountId, mailboxId), Message.NO_MESSAGE);
647 long accountId = getActualAccountId();
649 if (accountId > 0) {
650 Account account = Account.restoreAccountWithId(mActivity, accountId);
730 final long accountId = getUIAccountId();
731 if (!Account.isNormalAccount(accountId)) {
747 mActivity, accountId, mailboxId, queryTerm));
798 long accountId = getActualAccountId();
799 if (accountId > 0) {
800 Account account = Account.restoreAccountWithId(mActivity, accountId);
927 long accountId = getUIAccountId();
928 if (accountId != Account.NO_ACCOUNT) {
929 mActivity.startActivity(Welcome.createOpenAccountInboxIntent(mActivity, accountId));
1033 private void showAccountSpecificWarning(long accountId) {
1034 if (accountId != Account.NO_ACCOUNT && accountId != Account.NO_ACCOUNT) {
1035 Account account = Account.restoreAccountWithId(mActivity, accountId);