Batch deleting multiple folders insta-deletes everything if recycle bin is also selected

Open
#1,189 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by tracing the code path for multi-select folder deletion and how it handles the recycle bin; the issue does not name specific files or tests. Reproduce the reported selection and check the deletion flow, then verify that the recycle bin is emptied while the other selected folder is moved to it rather than permanently deleted.

Written by the indexing model from the issue text.

Description

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.14.0

Affected Android/Custom ROM version

17

Affected device model

Pixel 8a

How did you install the app?

Google Play Store

Steps to reproduce the bug

Configure items to be moved to recycle bin on delete.
Multi-select recycle bin and some other folder to be deleted.
Delete them.

Expected behavior

Recycle bin is emptied.
The additional selection is moved to the recycle bin.

Actual behavior

The whole selection is perma-deleted.

Screenshots/Screen recordings

No response

Additional information

I assume this is a simple order of operation issue/fix.

Dominant language
Kotlin
Stars
3.8k
Forks
270
Avg merge
1d 6h
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FossifyOrg/Gallery

All issues in FossifyOrg/Gallery

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.