Skip to content

Commit

Permalink
Disabled deletion on swipe
Browse files Browse the repository at this point in the history
Closes #273
  • Loading branch information
AndreyPavlenko committed Jul 15, 2023
1 parent aa1cd5a commit 67def30
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ public boolean isLongPressDragEnabled() {
return isRootFolder();
}

public boolean isItemViewSwipeEnabled() {
return isRootFolder();
}

@Override
protected void onItemDismiss(int position) {
BrowsableItem i = getAdapter().getParent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public boolean isLongPressDragEnabled() {
}

public boolean isItemViewSwipeEnabled() {
return filter == null;
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ public boolean isLongPressDragEnabled() {
return isRootItem();
}

public boolean isItemViewSwipeEnabled() {
return isRootItem();
}

@Override
protected void onItemDismiss(int position) {
BrowsableItem i = getAdapter().getParent();
Expand Down

0 comments on commit 67def30

Please sign in to comment.