Access incoming audio files after user taps Play
For platforms with insecure handling of media files, media files should be opened only after the user chooses to play the media. Change-Id: I5f9bbd1f8468a704a5962f0dddd3c8b11bba8bea
This commit is contained in:
@@ -269,7 +269,8 @@ public class AttachmentPreviewFactory {
|
||||
final View view = layoutInflater.inflate(layoutId, parent, false /* attachToRoot */);
|
||||
final AudioAttachmentView audioView = (AudioAttachmentView)
|
||||
view.findViewById(R.id.audio_attachment_view);
|
||||
audioView.bindMessagePartData(attachmentData, false /* incoming */);
|
||||
audioView.bindMessagePartData(
|
||||
attachmentData, false /* incoming */, false /* showAsSelected */);
|
||||
return view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user