use same code that is used to open files for images

fixes #1323
This commit is contained in:
Daniel Gultsch 2015-08-11 15:23:52 +02:00
parent c0dcf4a55a
commit 3677c6ec98

View File

@ -395,10 +395,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_VIEW); openDownloadable(message);
intent.setDataAndType(activity.xmppConnectionService
.getFileBackend().getJingleFileUri(message), "image/*");
getContext().startActivity(intent);
} }
}); });
viewHolder.image.setOnLongClickListener(openContextMenu); viewHolder.image.setOnLongClickListener(openContextMenu);