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
1 changed files with 1 additions and 4 deletions

View File

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