Commit 1673e4fc authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE on rotation

parent e37b9866
......@@ -713,7 +713,8 @@ public class AudioPlayer extends PlaybackServiceFragment implements PlaybackServ
mBinding.header.setBackgroundResource(0);
setHeaderVisibilities(true, true, false, false, false, true);
showPlaylistTips();
mPlaylistAdapter.setCurrentIndex(mService.getCurrentMediaPosition());
if (mService != null)
mPlaylistAdapter.setCurrentIndex(mService.getCurrentMediaPosition());
break;
default:
mBinding.header.setBackgroundResource(0);
......
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