diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-06-08 14:07:32 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-06-08 14:07:32 +0200 |
commit | 7bf57cf746bf992c9f430145f8d2ce8a58c7c488 (patch) | |
tree | 30b409516697074b3dea3d682dac20e6d38120bd /src/main | |
parent | 033c28e9b9fc87e6ab7d2afb74b449acf25ec25f (diff) |
change music volume during audio playback
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/AudioPlayer.java | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |