Commit 454f2ee1 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Set control stream to Music in the whole app

parent 135b5c9c
......@@ -28,6 +28,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
......@@ -98,6 +99,7 @@ public class AudioPlayerContainerActivity extends BaseActivity implements Playba
startService(new Intent(Constants.ACTION_INIT, null, this, MediaParsingService.class));
}
super.onCreate(savedInstanceState);
setVolumeControlStream(AudioManager.STREAM_MUSIC);
}
protected void initAudioPlayerContainerActivity() {
......
......@@ -147,7 +147,6 @@ class AudioPlayer : PlaybackServiceFragment(), PlaybackService.Callback, Playlis
R.drawable.ic_previous_pressed))
registerForContextMenu(mBinding.songsList)
activity.volumeControlStream = AudioManager.STREAM_MUSIC
userVisibleHint = true
mBinding.showCover = mSettings.getBoolean("audio_player_show_cover", false)
mBinding.playlistSwitch.setImageResource(UiTools.getResourceFromAttribute(view.context, if (mBinding.showCover) R.attr.ic_playlist else R.attr.ic_playlist_on))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment