aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorChristian S <christian@pix-art.de>2016-05-05 18:44:32 +0200
committerChristian S <christian@pix-art.de>2016-05-05 18:44:32 +0200
commit566b5b0181580b6fee7a91c5ea6cf5b41e1c3c57 (patch)
tree18bd85f64e1e9c241d43a7699347f86d0d7dc569 /src/main/java/eu/siacs
parentc83b0da53aaf38500ce327c6dcd30223aa134517 (diff)
bug fix in audioplayer
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java3
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());