diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 1543e4051..36c6d3acf 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -473,11 +473,12 @@ public class MessageAdapter extends ArrayAdapter<Message> { Uri audioFile = Uri.fromFile(activity.xmppConnectionService.getFileBackend().getFile(message)); AudioWife audioWife = audioPlayer.get(position); + RelativeLayout vg = new RelativeLayout(activity); if (audioWife == null) { audioWife = new AudioWife(); audioWife.init(getContext(), audioFile); audioPlayer.put(position, audioWife); - RelativeLayout vg = new RelativeLayout(activity); + LayoutInflater layoutInflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); audioWife.useDefaultUi(vg, layoutInflater); viewHolder.aw_player.addView(audioWife.getPlayerUi()); |