Rewrite of shuffle function

- shuffle function should work now
This commit is contained in:
Karim Abou Zeid 2015-01-25 21:36:50 +01:00
commit ecbf5fc292
8 changed files with 134 additions and 152 deletions

View file

@ -236,8 +236,7 @@ public class AlbumDetailActivity extends AbsFabActivity implements OnMusicRemote
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if (position > 0) {
app.getMusicPlayerRemote().setPlayingQueue(songs);
app.getMusicPlayerRemote().playSongAt(position - 1);
app.getMusicPlayerRemote().openQueue(songs, position - 1, true);
}
}
});

View file

@ -29,8 +29,7 @@ public class ViewPagerTabArtistSongListFragment extends AbsViewPagerTabArtistLis
setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
app.getMusicPlayerRemote().setPlayingQueue(songs);
app.getMusicPlayerRemote().playSongAt(position);
app.getMusicPlayerRemote().openQueue(songs, position, true);
}
});
return adapter;

View file

@ -82,8 +82,7 @@ public class SongViewFragment extends Fragment implements KabSearchAbleFragment
absListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
app.getMusicPlayerRemote().setPlayingQueue(songs);
app.getMusicPlayerRemote().playSongAt(position);
app.getMusicPlayerRemote().openQueue(songs, position, true);
}
});