Fix Samsung Oreo sorting issue

pull/757/head
Alex Baker 7 years ago
parent 4aab081f6c
commit c85354d85a

@ -113,7 +113,7 @@ public class TaskListRecyclerAdapter extends RecyclerView.Adapter<ViewHolder>
if (!adapter.isManuallySorted()) { if (!adapter.isManuallySorted()) {
startActionMode(); startActionMode();
} }
if (mode != null) { if (mode != null && !viewHolder.isMoving()) {
toggle(viewHolder); toggle(viewHolder);
} }
return true; return true;

@ -143,6 +143,10 @@ class ViewHolder extends RecyclerView.ViewHolder {
updateBackground(); updateBackground();
} }
boolean isMoving() {
return moving;
}
private void updateBackground() { private void updateBackground() {
if (selected || moving) { if (selected || moving) {
rowBody.setBackgroundColor(selectedColor); rowBody.setBackgroundColor(selectedColor);

Loading…
Cancel
Save