Fixed dragging
This commit is contained in:
parent
57d6c97203
commit
c730426be0
1 changed files with 5 additions and 2 deletions
|
@ -176,7 +176,7 @@ public class ChoseTabsFragment extends Fragment {
|
|||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull ChoseTabsFragment.SelectedTabsAdapter.TabViewHolder holder, int position) {
|
||||
holder.bind(position);
|
||||
holder.bind(position, holder);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -200,8 +200,11 @@ public class ChoseTabsFragment extends Fragment {
|
|||
view = itemView;
|
||||
}
|
||||
|
||||
void bind(int position) {
|
||||
void bind(int position, TabViewHolder holder) {
|
||||
handle.setImageResource(ThemeHelper.getIconByAttr(R.attr.drag_handle, getContext()));
|
||||
handle.setOnTouchListener(getOnTouchListener(holder));
|
||||
|
||||
view.setOnLongClickListener(getOnLongClickListener(holder));
|
||||
|
||||
if(selectedTabs.get(position).startsWith("6\t")) {
|
||||
String channelInfo[] = selectedTabs.get(position).split("\t");
|
||||
|
|
Loading…
Reference in a new issue