Repository navigation
Fix Android multi-file attach, add image compression, and trim tab/drawer padding - #2352
Merged
trissim merged 1 commit intoNov 28, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Android multi-file attachment, adds 1-tap + oversized image compression on the composer, and removes dead horizontal trailing padding in tabs, marquee scroll, and folded drawers.
Changes
tools/android/keepalive/java/org/toadcomms/AttachChooser.java):normalizeMultiSelect: clearsdata.setData(null)wheneverRESULT_OKreturnsClipDatawith >1 items and bothdataandclipDataare populated, working around Qt 6QAndroidPlatformFileDialogHelper::handleActivityResultshort-circuiting ongetData()before checkinggetClipData().MediaStore.ACTION_PICK_IMAGESwithMediaStore.EXTRA_PICK_IMAGES_MAX = MediaStore.getPickImagesMaxLimit()) toEXTRA_INITIAL_INTENTSalongside Camera whenEXTRA_ALLOW_MULTIPLEis set.src/toad/client/message_files.py,src/toad/qt/file_pickers.py,src/toad/qt/composer.py):ImageCompressionControl+MessagePromptComposer.compress_attached_images()andQtCompressImagesButton(ImageCompressionControl, QtPushButton)beside a horizontally scrollableattached_scrollchip bar onQtMessageComposer.compress_image_bytesusing Qt built-inQImage/QBuffer(downscales longest edge to 2048px + JPEG quality 82, picking smaller PNG if downscaled PNG wins, keeping only strict size reductions) plus auto-compression inread_pickedwhen an attached image exceedsread_limit.QtMessageComposer.submit().src/toad/qt/name_wave.py,src/toad/qt/window.py,src/toad/motion.py):×(max(18, advance("×") + 10)) while keeping thumb-friendly height (>= 24), eliminating the ~37 dp dead gap between tab titles and×._cached_titleright edge directly toclose_slot.geometry().left() - TAB_TEXT_CLOSE_GAP, left-aligned non-overflowing tab text, tightenedTAB_MARQUEE.gap(24 -> 14), and trimmed QSS horizontal padding onQTabBar::tab,#SidebarToggle, andnavigation.Verification
javac -cp android-35/android.jar AttachChooser.java:JAVAC_OK.pytest tests/model/test_android_perf_ux_arrivals.py tests/textual/test_name_wave_repaint.py tests/textual/test_message_file_chips.py: 52 passed.tools/qt_inherit_ratchet.py: 0/0/0/0/0;tools/glyph_check.py: 0;REL_IMPORTS=0.