mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-27 19:38:22 +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;
|
exceedThreshold = false;
|
||||||
touchHelper.attachToRecyclerView(null);
|
touchHelper.attachToRecyclerView(null);
|
||||||
touchHelper.attachToRecyclerView(mCommentRecyclerView);
|
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;
|
exceedThreshold = false;
|
||||||
touchHelper.attachToRecyclerView(null);
|
touchHelper.attachToRecyclerView(null);
|
||||||
touchHelper.attachToRecyclerView(mPostRecyclerView);
|
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.Bundle;
|
||||||
import android.os.CountDownTimer;
|
import android.os.CountDownTimer;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.util.Log;
|
|
||||||
import android.view.HapticFeedbackConstants;
|
import android.view.HapticFeedbackConstants;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@ -1087,9 +1086,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
|||||||
exceedThreshold = false;
|
exceedThreshold = false;
|
||||||
touchHelper.attachToRecyclerView(null);
|
touchHelper.attachToRecyclerView(null);
|
||||||
touchHelper.attachToRecyclerView(mPostRecyclerView);
|
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;
|
exceedThreshold = false;
|
||||||
touchHelper.attachToRecyclerView(null);
|
touchHelper.attachToRecyclerView(null);
|
||||||
touchHelper.attachToRecyclerView((mCommentsRecyclerView == null ? mRecyclerView : mCommentsRecyclerView));
|
touchHelper.attachToRecyclerView((mCommentsRecyclerView == null ? mRecyclerView : mCommentsRecyclerView));
|
||||||
if (mCommentsAdapter != null) {
|
|
||||||
mCommentsAdapter.onItemSwipe(viewHolder, direction, swipeLeftAction, swipeRightAction);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user