mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 03:18:24 +01:00
Fix ItemTouchHelper issue?
This commit is contained in:
parent
a6a46bb29f
commit
24b33bb05d
@ -180,9 +180,6 @@ public class CommentsListingFragment extends Fragment implements FragmentCommuni
|
||||
exceedThreshold = false;
|
||||
touchHelper.attachToRecyclerView(null);
|
||||
touchHelper.attachToRecyclerView(mCommentRecyclerView);
|
||||
if (mAdapter != null) {
|
||||
mAdapter.onItemSwipe(viewHolder, direction, swipeLeftAction, swipeRightAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -496,9 +496,6 @@ public class HistoryPostFragment extends Fragment implements FragmentCommunicato
|
||||
exceedThreshold = false;
|
||||
touchHelper.attachToRecyclerView(null);
|
||||
touchHelper.attachToRecyclerView(mPostRecyclerView);
|
||||
if (mAdapter != null) {
|
||||
mAdapter.onItemSwipe(viewHolder, direction, swipeLeftAction, swipeRightAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,6 @@ import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.CountDownTimer;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
import android.view.HapticFeedbackConstants;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.LayoutInflater;
|
||||
@ -1087,9 +1086,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
||||
exceedThreshold = false;
|
||||
touchHelper.attachToRecyclerView(null);
|
||||
touchHelper.attachToRecyclerView(mPostRecyclerView);
|
||||
if (mAdapter != null) {
|
||||
mAdapter.onItemSwipe(viewHolder, direction, swipeLeftAction, swipeRightAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -459,9 +459,6 @@ public class ViewPostDetailFragment extends Fragment implements FragmentCommunic
|
||||
exceedThreshold = false;
|
||||
touchHelper.attachToRecyclerView(null);
|
||||
touchHelper.attachToRecyclerView((mCommentsRecyclerView == null ? mRecyclerView : mCommentsRecyclerView));
|
||||
if (mCommentsAdapter != null) {
|
||||
mCommentsAdapter.onItemSwipe(viewHolder, direction, swipeLeftAction, swipeRightAction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user