MessageView: on answering invitation move in only one direction.

Bug 2541925

Change-Id: I62b454069f8c20403f15e0b58e597963809f830d
This commit is contained in:
Mihai Preda 2010-03-31 16:03:46 +02:00
parent 1a66cf0056
commit e2c2d81c31

View File

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