mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +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) {
|
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
if (viewType == ACTIVITY_TYPE) {
|
if (viewType == ACTIVITY_TYPE) {
|
||||||
return new ActivityViewHolder(
|
return new ActivityViewHolder(
|
||||||
ActivityListItemBinding.inflate(LayoutInflater.from(parent.getContext()))
|
ActivityListItemBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return new ActivityViewHeaderHolder(
|
return new ActivityViewHeaderHolder(
|
||||||
ActivityListItemHeaderBinding.inflate(LayoutInflater.from(parent.getContext()))
|
ActivityListItemHeaderBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue