Merge "Skip security check when account id is unknown." into froyo

This commit is contained in:
Andy Stadler 2010-04-27 22:21:00 -07:00 committed by Android (Google) Code Review
commit b915c3c018

View File

@ -1091,7 +1091,7 @@ public class MessageList extends ListActivity implements OnItemClickListener, On
@Override @Override
protected Long doInBackground(Void... params) { protected Long doInBackground(Void... params) {
// Quick check that account is not in security hold // Quick check that account is not in security hold
if (isSecurityHold(mAccountId)) { if (mAccountId != -1 && isSecurityHold(mAccountId)) {
showSecurityActivity = true; showSecurityActivity = true;
return Long.valueOf(-1); return Long.valueOf(-1);
} }