From a1f46b3aaefa9eaebb110c68783170d118814e0f Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 23 Oct 2015 16:55:23 -0700 Subject: [PATCH] Reset seekbar at end of play if mediaplayer doesn't do it for us. Fixes #4286 // FREEBIE --- src/org/thoughtcrime/securesms/components/AudioView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/thoughtcrime/securesms/components/AudioView.java b/src/org/thoughtcrime/securesms/components/AudioView.java index faa28ba759..55bfd52c83 100644 --- a/src/org/thoughtcrime/securesms/components/AudioView.java +++ b/src/org/thoughtcrime/securesms/components/AudioView.java @@ -131,6 +131,11 @@ public class AudioView extends FrameLayout implements AudioSlidePlayer.Listener @Override public void onStop() { this.controlToggle.display(this.playButton); + + if (seekBar.getProgress() + 5 >= seekBar.getMax()) { + backwardsCounter = 4; + onProgress(0.0, 0); + } } @Override