mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-13 21:15:08 -05:00
Fix whitespace; no functional changes.
This commit is contained in:
parent
38c4f24111
commit
3e261568ae
@ -814,7 +814,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void configureMenu(Menu menu){
|
private void configureMenu(Menu menu) {
|
||||||
// first run displayMessage() gets called before onCreateOptionMenu()
|
// first run displayMessage() gets called before onCreateOptionMenu()
|
||||||
if (menu == null) {
|
if (menu == null) {
|
||||||
return;
|
return;
|
||||||
@ -827,7 +827,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
|||||||
menu.findItem(R.id.spam).setVisible(true);
|
menu.findItem(R.id.spam).setVisible(true);
|
||||||
toggleActionsState(menu, true);
|
toggleActionsState(menu, true);
|
||||||
|
|
||||||
if (mNextMessage != null ) {
|
if (mNextMessage != null) {
|
||||||
|
|
||||||
menu.findItem(R.id.next_message).setEnabled(true);
|
menu.findItem(R.id.next_message).setEnabled(true);
|
||||||
menu.findItem(R.id.next_message).getIcon().setAlpha(255);
|
menu.findItem(R.id.next_message).getIcon().setAlpha(255);
|
||||||
@ -836,7 +836,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
|||||||
menu.findItem(R.id.next_message).setEnabled(false);
|
menu.findItem(R.id.next_message).setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mPreviousMessage != null ) {
|
if (mPreviousMessage != null) {
|
||||||
|
|
||||||
menu.findItem(R.id.previous_message).setEnabled(true);
|
menu.findItem(R.id.previous_message).setEnabled(true);
|
||||||
menu.findItem(R.id.previous_message).getIcon().setAlpha(255);
|
menu.findItem(R.id.previous_message).getIcon().setAlpha(255);
|
||||||
@ -875,8 +875,8 @@ public class MessageView extends K9Activity implements OnClickListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toggleActionsState(Menu menu, boolean state){
|
private void toggleActionsState(Menu menu, boolean state) {
|
||||||
for(int i=0; i<menu.size(); ++i) {
|
for (int i = 0; i < menu.size(); ++i) {
|
||||||
menu.getItem(i).setEnabled(state);
|
menu.getItem(i).setEnabled(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user