mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Use getBindingAdapterPosition() instead of getAdapterPosition()
This commit is contained in:
parent
bbba68bc70
commit
41c04ab302
17 changed files with 39 additions and 41 deletions
|
|
@ -72,7 +72,7 @@ public class DiscoverSongAdapter extends RecyclerView.Adapter<DiscoverSongAdapte
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
SongRepository songRepository = new SongRepository(App.getInstance());
|
||||
songRepository.increasePlayCount(songs.get(getAdapterPosition()));
|
||||
songRepository.increasePlayCount(songs.get(getBindingAdapterPosition()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue