Merge "Launch AccountSecurity if the account is on security hold."

This commit is contained in:
Makoto Onuki 2010-09-09 17:01:35 -07:00 committed by Android (Google) Code Review
commit 6a461a9d46
2 changed files with 5 additions and 4 deletions

View File

@ -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() {

View File

@ -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