1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

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

View File

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