public void getAllViews() { songList = (RecyclerView) view.findViewById(R.id.songList); songList.setHasFixedSize(true); LinearLayoutManager linearLayout = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false); songList.setLayoutManager(linearLayout); getSongList(); if (!MusicPlayerHelper.getInstance().getMusicStartedOnce()) { SlidingPanel.getInstance().setSongToLastPlayed(); } else { SlidingPanel.getInstance().setPlayerControl(); } }
@Override public void onResume() { super.onResume(); SlidingPanel.getInstance().setPlayingSongDetails(); }