mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Minor code cleanup
This commit is contained in:
parent
1f59098232
commit
449d4df2a9
@ -1133,11 +1133,12 @@ public class MessageList
|
||||
private void onSpam(MessageInfoHolder holder) {
|
||||
if (K9.confirmSpam()) {
|
||||
showDialog(R.id.dialog_confirm_spam);
|
||||
} else
|
||||
spam(holder);
|
||||
} else {
|
||||
moveToSpamFolder(holder);
|
||||
}
|
||||
}
|
||||
|
||||
private void spam(MessageInfoHolder holder){
|
||||
private void moveToSpamFolder(MessageInfoHolder holder){
|
||||
if (!mController.isMoveCapable(holder.message)) {
|
||||
Toast toast = Toast.makeText(this, R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
||||
toast.show();
|
||||
@ -1325,7 +1326,7 @@ public class MessageList
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
dismissDialog(id);
|
||||
spam(mSelectedMessage);
|
||||
moveToSpamFolder(mSelectedMessage);
|
||||
}
|
||||
});
|
||||
builder.setNegativeButton(R.string.dialog_confirm_spam_cancel_button,
|
||||
|
Loading…
Reference in New Issue
Block a user