From 2012ceff64e7e31087c3ff2c8fdebce655ebb632 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 9 Sep 2010 14:13:47 -0700 Subject: [PATCH] Launch AccountSecurity if the account is on security hold. Change-Id: Icac5de3259c66cac87e2a36d95d53a4f63ea94f1 --- src/com/android/email/activity/MessageListXL.java | 5 +++-- .../android/email/activity/MessageListXLFragmentManager.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/com/android/email/activity/MessageListXL.java b/src/com/android/email/activity/MessageListXL.java index 6d0fc4373..9b52f288e 100644 --- a/src/com/android/email/activity/MessageListXL.java +++ b/src/com/android/email/activity/MessageListXL.java @@ -21,6 +21,7 @@ import com.android.email.Email; import com.android.email.R; import com.android.email.RefreshManager; import com.android.email.Utility; +import com.android.email.activity.setup.AccountSecurity; import com.android.email.activity.setup.AccountSettingsXL; import com.android.email.activity.setup.AccountSetupBasics; import com.android.email.provider.EmailContent.Account; @@ -500,8 +501,8 @@ public class MessageListXL extends Activity implements View.OnClickListener, } @Override - public void onAccountSecurityHold() { - // TODO: implement this + public void onAccountSecurityHold(long accountId) { + startActivity(AccountSecurity.actionUpdateSecurityIntent(this, accountId)); } private void loadAccounts() { diff --git a/src/com/android/email/activity/MessageListXLFragmentManager.java b/src/com/android/email/activity/MessageListXLFragmentManager.java index 584ee65c8..b5bc23c36 100644 --- a/src/com/android/email/activity/MessageListXLFragmentManager.java +++ b/src/com/android/email/activity/MessageListXLFragmentManager.java @@ -99,7 +99,7 @@ class MessageListXLFragmentManager { /** * Called when the selected account is on security-hold. */ - public void onAccountSecurityHold(); + public void onAccountSecurityHold(long accountId); } private final TargetActivity mTargetActivity; @@ -488,7 +488,7 @@ class MessageListXLFragmentManager { if (Email.DEBUG_LIFECYCLE && Email.DEBUG) { Log.d(Email.LOG_TAG, "MailboxFinderCallback.onAccountSecurityHold"); } - mTargetActivity.onAccountSecurityHold(); + mTargetActivity.onAccountSecurityHold(accountId); } @Override