Merge "MessageView: on answering invitation move in only one direction." into froyo

This commit is contained in:
Marc Blank 2010-04-05 15:34:06 -07:00 committed by Android (Google) Code Review
commit f7d9f65961

View File

@ -713,8 +713,8 @@ public class MessageView extends Activity implements OnClickListener {
mPreviousMeetingResponse = response; mPreviousMeetingResponse = response;
} }
Toast.makeText(this, toastResId, Toast.LENGTH_SHORT).show(); Toast.makeText(this, toastResId, Toast.LENGTH_SHORT).show();
if (!moveToOlder() && !moveToNewer()) { if (!moveToOlder()) {
finish(); // if this is the single message, move up to message-list. finish(); // if this is the last message, move up to message-list.
} }
} }