1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Renamed "next" and "previous" buttons to match code style

This commit is contained in:
Jesse Vincent 2011-02-10 16:28:30 -05:00
parent fe21d6951f
commit 015baa06b4

View File

@ -55,8 +55,8 @@ public class MessageView extends K9Activity implements OnClickListener {
private View mShowPicturesSection; private View mShowPicturesSection;
private boolean mShowPictures; private boolean mShowPictures;
private Button mDownloadRemainder; private Button mDownloadRemainder;
View next; private View mNext;
View previous; private View mPrevious;
private View mDelete; private View mDelete;
private View mArchive; private View mArchive;
private View mMove; private View mMove;
@ -432,7 +432,7 @@ public class MessageView extends K9Activity implements OnClickListener {
if (K9.DEBUG) if (K9.DEBUG)
Log.d(K9.LOG_TAG, "MessageView got message " + mMessageReference); Log.d(K9.LOG_TAG, "MessageView got message " + mMessageReference);
if (intent.getBooleanExtra(EXTRA_NEXT, false)) { if (intent.getBooleanExtra(EXTRA_NEXT, false)) {
next.requestFocus(); mNext.requestFocus();
} }
setupHeaderLayout(); setupHeaderLayout();
@ -610,8 +610,8 @@ public class MessageView extends K9Activity implements OnClickListener {
private void setupDisplayMessageButtons() { private void setupDisplayMessageButtons() {
mDelete.setEnabled(true); mDelete.setEnabled(true);
next.setEnabled(mNextMessage != null); mNext.setEnabled(mNextMessage != null);
previous.setEnabled(mPreviousMessage != null); mPrevious.setEnabled(mPreviousMessage != null);
// If moving isn't support at all, then all of them must be disabled anyway. // If moving isn't support at all, then all of them must be disabled anyway.
if (mController.isMoveCapable(mAccount)) { if (mController.isMoveCapable(mAccount)) {
// Only enable the button if the Archive folder is not the current folder and not NONE. // Only enable the button if the Archive folder is not the current folder and not NONE.
@ -631,8 +631,8 @@ public class MessageView extends K9Activity implements OnClickListener {
if (buttons != null) { if (buttons != null) {
buttons.setVisibility(View.GONE); buttons.setVisibility(View.GONE);
} }
next = findViewById(R.id.next); mNext = findViewById(R.id.next);
previous = findViewById(R.id.previous); mPrevious = findViewById(R.id.previous);
mDelete = findViewById(R.id.delete); mDelete = findViewById(R.id.delete);
} }
@ -641,8 +641,8 @@ public class MessageView extends K9Activity implements OnClickListener {
if (buttons != null) { if (buttons != null) {
buttons.setVisibility(View.GONE); buttons.setVisibility(View.GONE);
} }
next = findViewById(R.id.next_scrolling); mNext = findViewById(R.id.next_scrolling);
previous = findViewById(R.id.previous_scrolling); mPrevious = findViewById(R.id.previous_scrolling);
mDelete = findViewById(R.id.delete_scrolling); mDelete = findViewById(R.id.delete_scrolling);
} }
@ -669,8 +669,8 @@ public class MessageView extends K9Activity implements OnClickListener {
private void disableButtons() { private void disableButtons() {
setLoadPictures(false); setLoadPictures(false);
disableMoveButtons(); disableMoveButtons();
next.setEnabled(false); mNext.setEnabled(false);
previous.setEnabled(false); mPrevious.setEnabled(false);
mDelete.setEnabled(false); mDelete.setEnabled(false);
} }
@ -941,7 +941,7 @@ public class MessageView extends K9Activity implements OnClickListener {
mTopView.startAnimation(outToLeftAnimation()); mTopView.startAnimation(outToLeftAnimation());
} }
displayMessage(mNextMessage); displayMessage(mNextMessage);
next.requestFocus(); mNext.requestFocus();
} }
@Override @Override
@ -956,7 +956,7 @@ public class MessageView extends K9Activity implements OnClickListener {
mTopView.startAnimation(inFromRightAnimation()); mTopView.startAnimation(inFromRightAnimation());
} }
displayMessage(mPreviousMessage); displayMessage(mPreviousMessage);
previous.requestFocus(); mPrevious.requestFocus();
} }
private void onMarkAsUnread() { private void onMarkAsUnread() {