Skip to content

FirebaseRecyclerAdapter has overly strong cast #96

@ScottCypher

Description

@ScottCypher

onCreateViewHolder casts the inflated View to a ViewGroup which causes a crash if your layout is simple (e.g. a TextView with no ViewGroup around it). The constructor for RecyclerView.ViewHolder only requires a View, so this cast seems unnecessary.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions