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

Moved click listener from MessageView to SingleMessageView

This commit is contained in:
cketti 2012-02-22 22:44:31 +01:00
parent 63b43a40a9
commit 0ef9c516be
2 changed files with 5 additions and 6 deletions

View File

@ -398,9 +398,6 @@ public class MessageView extends K9Activity implements OnClickListener {
setOnClickListener(R.id.archive);
setOnClickListener(R.id.move);
setOnClickListener(R.id.spam);
// To show full header
setOnClickListener(R.id.header_container);
setOnClickListener(R.id.show_pictures);
setOnClickListener(R.id.download_remainder);
@ -812,9 +809,6 @@ public class MessageView extends K9Activity implements OnClickListener {
case R.id.download:
((AttachmentView)view).saveFile();
break;
case R.id.show_pictures:
mMessageView.setLoadPictures(true);
break;
case R.id.download_remainder:
onDownloadRemainder();
break;

View File

@ -104,6 +104,7 @@ public class SingleMessageView extends LinearLayout implements OnClickListener {
mShowHiddenAttachments.setOnClickListener(this);
mShowMessageAction.setOnClickListener(this);
mShowAttachmentsAction.setOnClickListener(this);
mShowPicturesAction.setOnClickListener(this);
}
@Override
@ -121,6 +122,10 @@ public class SingleMessageView extends LinearLayout implements OnClickListener {
onShowAttachments();
break;
}
case R.id.show_pictures: {
setLoadPictures(true);
break;
}
}
}