Skip to content
Snippets Groups Projects
Commit c353b58d authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Update playlist icon in audio player

(cherry picked from commit b2588283)
parent 8614e2a8
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,7 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
getActivity().setVolumeControlStream(AudioManager.STREAM_MUSIC);
setUserVisibleHint(true);
mBinding.setShowCover(mSettings.getBoolean("audio_player_show_cover", false));
mBinding.playlistSwitch.setImageResource(UiTools.getResourceFromAttribute(view.getContext(), mBinding.getShowCover() ? R.attr.ic_playlist : R.attr.ic_playlist_on));
}
@Override
......@@ -437,6 +438,7 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
public void onPlaylistSwitchClick(View view) {
mSettings.edit().putBoolean("audio_player_show_cover", !mBinding.getShowCover()).apply();
mBinding.setShowCover(!mBinding.getShowCover());
mBinding.playlistSwitch.setImageResource(UiTools.getResourceFromAttribute(view.getContext(), mBinding.getShowCover() ? R.attr.ic_playlist : R.attr.ic_playlist_on));
}
public void onShuffleClick(View view) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment