1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Whitespace fixes

This commit is contained in:
cketti 2012-07-24 00:20:06 +02:00 committed by Andrew Chen
parent 33cae2fdab
commit 763e2853d7

View File

@ -695,8 +695,8 @@ public class MessageList extends K9ListActivity implements
// Correcting for screen rotation when in ActionMode // Correcting for screen rotation when in ActionMode
mSelectedCount = getSelectionFromCheckboxes().size(); mSelectedCount = getSelectionFromCheckboxes().size();
if (mSelectedCount > 0) { if (mSelectedCount > 0) {
mActionMode = MessageList.this.startActionMode(mActionModeCallback); mActionMode = MessageList.this.startActionMode(mActionModeCallback);
mActionMode.setTitle(mSelectedCount+" "+getString(R.string.actionbar_selected)); mActionMode.setTitle(mSelectedCount + " " + getString(R.string.actionbar_selected));
} }
} }
@ -1408,10 +1408,10 @@ public class MessageList extends K9ListActivity implements
} }
private void onToggleRead(final List<MessageInfoHolder> holders) { private void onToggleRead(final List<MessageInfoHolder> holders) {
LocalMessage message; LocalMessage message;
Folder folder; Folder folder;
Account account; Account account;
String folderName; String folderName;
int i = 0; int i = 0;
for (final Iterator<MessageInfoHolder> iterator = holders.iterator(); iterator.hasNext(); i++) { for (final Iterator<MessageInfoHolder> iterator = holders.iterator(); iterator.hasNext(); i++) {
@ -2713,10 +2713,13 @@ public class MessageList extends K9ListActivity implements
if (mSelectedCount > 1) { if (mSelectedCount > 1) {
toggleMessageSelect(holder); toggleMessageSelect(holder);
} else { } else {
if( holder.selected ) mActionMode.finish(); if (holder.selected) {
else toggleMessageSelect(holder); mActionMode.finish();
} else {
toggleMessageSelect(holder);
}
} }
}else{ } else {
mActionMode = MessageList.this.startActionMode(mActionModeCallback); mActionMode = MessageList.this.startActionMode(mActionModeCallback);
toggleMessageSelect(holder); toggleMessageSelect(holder);
} }