mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +03:00
attached view to parent when calling Inflater
Fixes #8332 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
9e32fc0aa5
commit
1147440f3e
1 changed files with 2 additions and 2 deletions
|
@ -149,11 +149,11 @@ public class ActivityListAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
|
|||
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
if (viewType == ACTIVITY_TYPE) {
|
||||
return new ActivityViewHolder(
|
||||
ActivityListItemBinding.inflate(LayoutInflater.from(parent.getContext()))
|
||||
ActivityListItemBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)
|
||||
);
|
||||
} else {
|
||||
return new ActivityViewHeaderHolder(
|
||||
ActivityListItemHeaderBinding.inflate(LayoutInflater.from(parent.getContext()))
|
||||
ActivityListItemHeaderBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue