-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When attaching multiple images at once, they appear in random order #4754
Comments
Same issue, same Tusky version on Android 14, Samsung Galaxy |
Technical reason: The asyncness in ComposeActivity#pickMedia() randomizes the list elements somehow. One can index the elements for example in ComposeActivity#pickMediaFileLauncher to see this. |
Oh, nice find. I assumed it was because the file picker already gives us the files in random order. |
Ok, so Here is what I would try: There is also quite some potential for refactoring / code quality improvements. |
Do you want to send a pull request for this @Lakoja or should I? |
I'll happily review it. :-) |
Steps to reproduce the problem
Expected behavior: The four images appear in the post in the order I longpressed them
Observed behavior: The four images appear in what appears to be literally random order. It's not chronological.
This significantly slows down making posts with many images, because on my phone I have to do multiple clicks to get into the Photos app and then that is multiplied by four due to this bug.
Odd point for comparison: In my testing it appears the bluesky social app does have this problem and Discord does not. The fact Discord does not have the problem makes me suspect the problem is in the app and not in Android.
Debug information
Tusky 26.2
"Version: 4.4.0-nightly.2024-11-06"
Android 13
Sony Xperia 5 III
mastodon.social
However, also @connyduck reports he saw this.
The text was updated successfully, but these errors were encountered: