Merge "Fix bug that prevents from accepting 2 invites in a row."

This commit is contained in:
Makoto Onuki 2011-04-12 13:56:59 -07:00 committed by Android (Google) Code Review
commit 0efbee2bd0
2 changed files with 5 additions and 2 deletions

View File

@ -17,6 +17,8 @@
package com.android.emailcommon.service;
public class EmailServiceConstants {
/** "Not responded yet", used ONLY for UI. */
public static final int MEETING_REQUEST_NOT_RESPONDED = 0;
public static final int MEETING_REQUEST_ACCEPTED = 1;
public static final int MEETING_REQUEST_TENTATIVE = 2;
public static final int MEETING_REQUEST_DECLINED = 3;

View File

@ -62,11 +62,11 @@ public class MessageViewFragment extends MessageViewFragmentBase
private CheckBox mMeetingYes;
private CheckBox mMeetingMaybe;
private CheckBox mMeetingNo;
private int mPreviousMeetingResponse = -1;
private Drawable mFavoriteIconOn;
private Drawable mFavoriteIconOff;
private int mPreviousMeetingResponse = EmailServiceConstants.MEETING_REQUEST_NOT_RESPONDED;
/**
* ID of the message that will be loaded. Protect with {@link #mLock}.
*/
@ -233,6 +233,7 @@ public class MessageViewFragment extends MessageViewFragmentBase
mMeetingYes.setChecked(false);
mMeetingNo.setChecked(false);
mMeetingMaybe.setChecked(false);
mPreviousMeetingResponse = EmailServiceConstants.MEETING_REQUEST_NOT_RESPONDED;
}
@Override