aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-09-27 22:10:09 +0200
committerChristian Schneppe <christian@pix-art.de>2016-09-27 22:10:09 +0200
commitdb224342ec1c1bf9da989f8f3d083a6941867a3b (patch)
tree3450e5f2d9cffa06cc32fc6cab227a4eb1e7b691 /src/main/java/de
parent013e5c1ea3950bbfba632f2b104517a4af5b862e (diff)
initialize audioplayer at beginning
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
index 2e3af3ebb..4ac0c3ed9 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
@@ -42,8 +42,6 @@ import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.RejectedExecutionException;
-import java.util.regex.MatchResult;
-import java.util.regex.Matcher;
import java.util.regex.Pattern;
import de.pixart.messenger.Config;
@@ -78,6 +76,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
private DisplayMetrics metrics;
+ private AudioWife audioWife;
+
private OnContactPictureClicked mOnContactPictureClickedListener;
private OnContactPictureLongClicked mOnContactPictureLongClickedListener;
@@ -408,7 +408,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
viewHolder.aw_player.setVisibility(View.VISIBLE);
Uri audioFile = Uri.fromFile(activity.xmppConnectionService.getFileBackend().getFile(message));
- AudioWife audioWife = audioPlayer.get(position);
+ audioWife = audioPlayer.get(position);
if (audioWife == null) {
audioWife = new AudioWife();
audioWife.init(getContext(), audioFile);