rcx
rcx copied to clipboard
Sorting order resetting
What version of RCX are you using (About -> App version)?
1.12.1
What is your Android version, phone model and manufacturer?
Android 11, OP8 Pro
Which steps are required to reproduce this issue?
Sort a (remote/local) directory, enter a subdirectory, go back. The directory is now not sorted by the order selected previously, despite the same options still being selected in the sorting menu. I don't know if "bug" is the correct term for this, or if persisting the sorting order is just not intended to be a feature yet.
In general, there is a single, global sort setting. After someone selects "OK" in the sort dialog, the chosen sort order is applied and saved. When navigating back, this sort order is applied as well.
I'm really not sure what is happening on your device; it works as described for me. There is some potential for a timing bug though. The new sort order is only saved after sorting the current folder. If someone where to navigate back while the current folder is still being sorted, the new sort order would probably not be used.
What happens when you refresh the parent directory? Which sort order do you observe then?
When I refresh the parent directory, the incorrect default sort order remains. Only when I go into the sort menu and press OK do I get the correct selected order.
That is really weird. So the order is this:
- You are in a folder.
- You open the sort Dialog and select a different sorting option.
- You close the sort dialog with OK
- The folder starts refreshing
- You navigate back to the parent folder - before or after the sorting has finished?
- The parent folder is still following the old sorting order
- You open the sort Dialog again and the same selection as in Step 2 is still selected
- You select OK again and now the parent is correctly sorted
Is that correct? Sorry if I'm asking so many questions, I've just so far not managed to cause the same bug on my devices. Would it maybe possible to send in a video that shows the bug?
https://files.catbox.moe/7j2xsf.mp4
Thanks for the video. Something is clearly going wrong. I'll investigate.
Figured it out. For some reason, the sort order is inverted for size and mod time. The bug has been there since before my time with RCX, I'm really surprised we only discovered this now.