Fix lint warnings in item adapters

This commit is contained in:
CappielloAntonio
2021-08-14 17:37:23 +02:00
parent 81ba6970f5
commit 99c956c122
25 changed files with 156 additions and 118 deletions

View File

@@ -21,9 +21,10 @@ import java.util.List;
public class PlayerNowPlayingSongAdapter extends RecyclerView.Adapter<PlayerNowPlayingSongAdapter.ViewHolder> {
private static final String TAG = "DiscoverSongAdapter";
private final LayoutInflater inflater;
private final Context context;
private List<Song> songs;
private LayoutInflater inflater;
private Context context;
public PlayerNowPlayingSongAdapter(Context context) {
this.context = context;
@@ -33,7 +34,7 @@ public class PlayerNowPlayingSongAdapter extends RecyclerView.Adapter<PlayerNowP
@NonNull
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = inflater.inflate(R.layout.item_player_now_playing_song, parent, false);
return new ViewHolder(view);
}