use of io.hefuyi.listener.ui.adapter.AlbumSongsAdapter in project ListenerMusicPlayer by hefuyicoder.
the class AlbumDetailFragment method onFabPlayClick.
@OnClick(R.id.fab_play)
public void onFabPlayClick() {
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
AlbumSongsAdapter adapter = (AlbumSongsAdapter) recyclerView.getAdapter();
MusicPlayer.playAll(getActivity(), adapter.getSongIds(), 0, albumID, ListenerUtil.IdType.Album, false);
}
}, 150);
}
use of io.hefuyi.listener.ui.adapter.AlbumSongsAdapter in project ListenerMusicPlayer by hefuyicoder.
the class AlbumDetailFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
injectDependences();
mPresenter.attachView(this);
if (getArguments() != null) {
albumID = getArguments().getLong(Constants.ALBUM_ID);
albumName = getArguments().getString(Constants.ALBUM_NAME);
}
context = getActivity();
mPreferences = PreferencesUtility.getInstance(context);
mAdapter = new AlbumSongsAdapter(getActivity(), albumID);
}
Aggregations