From 7bf57cf746bf992c9f430145f8d2ce8a58c7c488 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 8 Jun 2019 14:07:32 +0200 Subject: change music volume during audio playback --- src/main/java/de/pixart/messenger/services/AudioPlayer.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java') diff --git a/src/main/java/de/pixart/messenger/services/AudioPlayer.java b/src/main/java/de/pixart/messenger/services/AudioPlayer.java index 64a1ea787..4f8d40c18 100644 --- a/src/main/java/de/pixart/messenger/services/AudioPlayer.java +++ b/src/main/java/de/pixart/messenger/services/AudioPlayer.java @@ -97,6 +97,7 @@ public class AudioPlayer implements View.OnClickListener, MediaPlayer.OnCompleti } private boolean init(ViewHolder viewHolder, Message message) { + messageAdapter.getActivity().setVolumeControlStream(AudioManager.STREAM_MUSIC); if (viewHolder.darkBackground) { viewHolder.runtime.setTextAppearance(this.messageAdapter.getContext(), R.style.TextAppearance_Conversations_Caption_OnDark); } else { -- cgit v1.2.3