Files
Flexera-Launcher/src/com
TMCandClaude Opus 5.5 a79962e5c4 Keep a floating folder on the screen when its page area is wrong
On the Pixel on 2026-11-14 a folder opened in the top left corner of the
screen, with its apps out of reach; 15 minutes later folders opened
normally again. Launcher3 bounds a folder to the area of the workspace
page it finds with getNextPage(). When that area is empty, the branch for
a folder taller than its bounds centres the folder on the area and skips
the later clamp to the screen, which puts the folder at
(-width/2, -height/2): centred on the top left corner, mostly off the
screen. What made the area empty that morning is not known; the phone's
log of that time is gone.

getFolderBoundingBox now falls back to the screen's area for folders when
the page area is empty or not on the screen, and logs the page indices,
the drag layer's size and the launcher state when it does (tag Launcher),
to find the cause next time. updateOpenFolderPosition keeps the folder
within the drag layer whatever the bounds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:01:25 +01:00
..