Skip to content

Commit a86fdb5

Browse files
authored
Merge pull request #307 from MaciejCiemiega/patch-1
Removed casting of inflated layout to ViewGroup
2 parents 8179a8f + ba43f98 commit a86fdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/main/java/com/firebase/ui/database/FirebaseRecyclerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public long getItemId(int position) {
164164

165165
@Override
166166
public VH onCreateViewHolder(ViewGroup parent, int viewType) {
167-
ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext()).inflate(viewType, parent, false);
167+
View view = LayoutInflater.from(parent.getContext()).inflate(viewType, parent, false);
168168
try {
169169
Constructor<VH> constructor = mViewHolderClass.getConstructor(View.class);
170170
return constructor.newInstance(view);

0 commit comments

Comments
 (0)