Stop audio when leaving conversation.

Fixes #4290
// FREEBIE
This commit is contained in:
Moxie Marlinspike
2015-10-23 17:00:51 -07:00
parent a1f46b3aae
commit d70f0f1216
2 changed files with 8 additions and 0 deletions

View File

@@ -133,6 +133,12 @@ public class AudioSlidePlayer {
this.audioAttachmentServer = null;
}
public synchronized static void stopAll() {
if (playing.isPresent()) {
playing.get().stop();
}
}
public void setListener(@NonNull Listener listener) {
this.listener = new WeakReference<>(listener);