Moved click listener from MessageView to SingleMessageView
This commit is contained in:
parent
63b43a40a9
commit
0ef9c516be
2 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue