mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Moved click listener from MessageView to SingleMessageView
This commit is contained in:
parent
63b43a40a9
commit
0ef9c516be
@ -398,9 +398,6 @@ public class MessageView extends K9Activity implements OnClickListener {
|
|||||||
setOnClickListener(R.id.archive);
|
setOnClickListener(R.id.archive);
|
||||||
setOnClickListener(R.id.move);
|
setOnClickListener(R.id.move);
|
||||||
setOnClickListener(R.id.spam);
|
setOnClickListener(R.id.spam);
|
||||||
// To show full header
|
|
||||||
setOnClickListener(R.id.header_container);
|
|
||||||
setOnClickListener(R.id.show_pictures);
|
|
||||||
setOnClickListener(R.id.download_remainder);
|
setOnClickListener(R.id.download_remainder);
|
||||||
|
|
||||||
|
|
||||||
@ -812,9 +809,6 @@ public class MessageView extends K9Activity implements OnClickListener {
|
|||||||
case R.id.download:
|
case R.id.download:
|
||||||
((AttachmentView)view).saveFile();
|
((AttachmentView)view).saveFile();
|
||||||
break;
|
break;
|
||||||
case R.id.show_pictures:
|
|
||||||
mMessageView.setLoadPictures(true);
|
|
||||||
break;
|
|
||||||
case R.id.download_remainder:
|
case R.id.download_remainder:
|
||||||
onDownloadRemainder();
|
onDownloadRemainder();
|
||||||
break;
|
break;
|
||||||
|
@ -104,6 +104,7 @@ public class SingleMessageView extends LinearLayout implements OnClickListener {
|
|||||||
mShowHiddenAttachments.setOnClickListener(this);
|
mShowHiddenAttachments.setOnClickListener(this);
|
||||||
mShowMessageAction.setOnClickListener(this);
|
mShowMessageAction.setOnClickListener(this);
|
||||||
mShowAttachmentsAction.setOnClickListener(this);
|
mShowAttachmentsAction.setOnClickListener(this);
|
||||||
|
mShowPicturesAction.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -121,6 +122,10 @@ public class SingleMessageView extends LinearLayout implements OnClickListener {
|
|||||||
onShowAttachments();
|
onShowAttachments();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case R.id.show_pictures: {
|
||||||
|
setLoadPictures(true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user