Skip to content

AppCleaner: Improve recycle-bin filter on Samsung devices - #1059

Merged
d4rken merged 8 commits into
mainfrom
gallery_trashfiles
Mar 13, 2024
Merged

AppCleaner: Improve recycle-bin filter on Samsung devices#1059
d4rken merged 8 commits into
mainfrom
gallery_trashfiles

Conversation

@d4rken

@d4rken d4rken commented Mar 13, 2024

Copy link
Copy Markdown
Member

Prevent SystemCleaner's "Linux Files" filter from picking up the default trash folder on Samsung devices.
Support app specific matching of files in the system's recycle bin folder on Samsung devices

e.g.:

/sdcard/Android/.Trash/<gallery/myfiles etc.>/<trash files>

Closes #1057

d4rken added 7 commits March 13, 2024 17:16
Prevent SystemCleaner's "Linux Files" filter from picking up the default trash folder on Samsung devices.
Support app specific matching of files in the system's recycle bin folder on Samsung devices

e.g.:

sdcard/Android/.Trash/<gallery/myfiles etc.>/<trash files>

Closes #1057
@d4rken d4rken added enhancement New feature, request, improvement or optimization c: AppCleaner c: SystemCleaner labels Mar 13, 2024
@d4rken
d4rken merged commit 67daafc into main Mar 13, 2024
@d4rken
d4rken deleted the gallery_trashfiles branch March 13, 2024 20:38
d4rken added a commit that referenced this pull request Apr 2, 2024
…age Access Framework

filters work with prefix free paths, i.e. they don't care about the specific "sdcard name".
#1059  removed the overlap when passing scanned paths to filters, so filters get more path information.
Before filters worked with "/sdcard/nextcloud/folderA" -> "folderA"
After filters worked with "/sdcard/nextcloud/folderA" -> "nextcloud/folderA"

This worked for `LocalPath` but caused a bug with `SAFPath` because paths here are split into a `treeUri` and segments.
The path logic failed when we tried to check `SAFPath(treeUri,1-segment).startsWith(SAFPath(treeUri,0-segments))`.

Closes #1100
d4rken added a commit that referenced this pull request Apr 2, 2024
…age Access Framework

filters work with prefix free paths, i.e. they don't care about the specific "sdcard name".
#1059  removed the overlap when passing scanned paths to filters, so filters get more path information.
Before filters worked with "/sdcard/nextcloud/folderA" -> "folderA"
After filters worked with "/sdcard/nextcloud/folderA" -> "nextcloud/folderA"

This worked for `LocalPath` but caused a bug with `SAFPath` because paths here are split into a `treeUri` and segments.
The path logic failed when we tried to check `SAFPath(treeUri,1-segment).startsWith(SAFPath(treeUri,0-segments))`.

Closes #1100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: AppCleaner c: SystemCleaner enhancement New feature, request, improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Samsung Gallery : "Android/.Trash" files

1 participant