Moved findSurroundingMessagesUid() above the block it was in (which was only present if the next and previous buttons are visible (and they are not visible in horizontal orientation (and that's the only time you can use the keyboard in a non-emulated device))).

Fixes issue #50.
This commit is contained in:
Bradley Young 2008-12-23 07:18:36 +00:00
parent 266a3eddcf
commit 70ab4d7a37
1 changed files with 2 additions and 2 deletions

View File

@ -319,6 +319,8 @@ public class MessageView extends Activity
mMessageUid = intent.getStringExtra(EXTRA_MESSAGE);
mFolderUids = intent.getStringArrayListExtra(EXTRA_FOLDER_UIDS);
findSurroundingMessagesUid();
View next = findViewById(R.id.next);
View previous = findViewById(R.id.previous);
/*
@ -329,8 +331,6 @@ public class MessageView extends Activity
next.setOnClickListener(this);
previous.setOnClickListener(this);
findSurroundingMessagesUid();
previous.setVisibility(mPreviousMessageUid != null ? View.VISIBLE : View.GONE);
next.setVisibility(mNextMessageUid != null ? View.VISIBLE : View.GONE);