aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-11-25 23:05:19 +0100
committerChristian Schneppe <christian@pix-art.de>2017-11-25 23:05:19 +0100
commite3312e21645b981d1aaac2ebe7a7ca5d85b40b08 (patch)
tree44c4af571a8cda6554e8cb27ef215b971f15642c /src
parent97a6c82ff90650816b103616f3cbe1e585eb1721 (diff)
use REFRESH_UI_INTERVALL also for AudioPlayer
seems to fix flickerinig of progress bar
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/services/AudioPlayer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/AudioPlayer.java b/src/main/java/de/pixart/messenger/services/AudioPlayer.java
index 3cc2fe1be..fa043655f 100644
--- a/src/main/java/de/pixart/messenger/services/AudioPlayer.java
+++ b/src/main/java/de/pixart/messenger/services/AudioPlayer.java
@@ -14,6 +14,7 @@ import android.widget.TextView;
import java.lang.ref.WeakReference;
import java.util.Locale;
+import de.pixart.messenger.Config;
import de.pixart.messenger.R;
import de.pixart.messenger.entities.Message;
import de.pixart.messenger.ui.adapter.MessageAdapter;
@@ -21,7 +22,7 @@ import de.pixart.messenger.utils.WeakReferenceSet;
public class AudioPlayer implements View.OnClickListener, MediaPlayer.OnCompletionListener, SeekBar.OnSeekBarChangeListener, Runnable {
- private static final int REFRESH_INTERVAL = 250;
+ private static final int REFRESH_INTERVAL = Config.REFRESH_UI_INTERVAL;
private static final Object LOCK = new Object();
private static MediaPlayer player = null;
private static Message currentlyPlayingMessage = null;