Пример #1
0
  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();
    }
  }
Пример #2
0
 @Override
 public void onResume() {
   super.onResume();
   SlidingPanel.getInstance().setPlayingSongDetails();
 }