Repository navigation
Description
Operating system
Other
Orca version
Orca Mobile 0.0.59 (23) on a Galaxy Z Fold7; also reproduced with builds of main 46237aa
Details
Short summary:
Putting Orca Mobile into split screen on a Galaxy Z Fold7 (One UI 9.0, Android 17) restarts MainActivity, which closes the open session and breaks photo attach. Adding only density to configChanges (#9190) stops the restart but leaves the layout drawn for the old density. The multi-window metrics plugin from #20853 fixes both on this device.
What happened?
One UI changes the window density when the app enters or leaves split screen (360 → 321 dpi here). On current main, Android restarts the activity:
WindowManager: Checking to restart com.stably.orca.mobile.MainActivity: changed={CONFIG_SCREEN_LAYOUT, CONFIG_SCREEN_SIZE, CONFIG_SMALLEST_SCREEN_SIZE, CONFIG_DENSITY}
wm_relaunch_resume_activity: [0,…,com.stably.orca.mobile/.MainActivity,1d00]
After the restart the session is gone, and attaching a photo fails because the picker launcher belonged to the destroyed activity:
java.lang.IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher with contract expo.modules.imagepicker.contracts.ImageLibraryContract
With density declared, the activity survives, but React Native's DisplayMetricsHolder keeps the density from process start. The split pane is laid out too small (empty band at the bottom and right) and button labels are clipped ("Canc", "Sav", "Continu"). #20853 re-seeds the holder from the activity's window resources on create, resume and configuration change.
| main | main + density only |
main + #20853 plugin | |
|---|---|---|---|
| Activity relaunches (enter + leave) | 2 | 0 | 0 |
| Session after split | closed | kept | kept |
| Photo attach in split | fails | works | not tested |
| Pane fills the split window | not measured | no | yes |
| Button text in split | clipped | clipped | full |
The main column is an Oct 28 build; the other two are builds of main 46237aa. Same device and scripted steps, mock desktop data, status bar and notifications blurred:
Restart on current main vs density:
orca-split-screen.mp4
density only vs #20853 plugin:
orca-split-ui.mp4
How can we reproduce it?
- Galaxy Z Fold7, One UI 9.0, unfolded. Open a session in Orca Mobile.
- Put Orca in split screen next to any app (Calculator here).
- Current main: the session closes and photo attach fails. With
densityonly: the pane leaves an empty band and button labels are clipped.
Anything else that might help:
- fix(android): enable split-screen/multi-window for Samsung devices #9190 asked for Samsung-specific reproduction evidence; this is it. Divider drags only change
SCREEN_LAYOUT/SCREEN_SIZEand never restarted the activity, matching the Pixel Tablet result there. The trigger is the density change on entering and leaving split screen, anddensityalone is not enough. - fix(mobile): render correctly in Android multi-window density mismatch #20853 no longer merges cleanly with main (the terminal WebView files moved). Its Android plugin alone, applied to current main, gives the last column. I can help rebase it, or open a focused PR with just the plugin, credited to its author.
- [Bug]: Orca Mobile does not render correctly on Samsung Dex #18841, fix(mobile): correct text and layout scaling in Samsung DeX #20198 and fix(mobile): keep Android layout intact in Samsung DeX / external-display windows #16018 cover DeX and external displays. fix(mobile): correct text and layout scaling in Samsung DeX #20198's react-native-screens patch was not needed for split screen on this device.
Activity
AmoabaKelvin commentedon Nov 1, 2026
Thanks for the detailed report! Fixed in #36977: Orca Mobile now handles One UI's split-screen density change without restarting, and re-reads the pane's density so the layout isn't squeezed. It needs the next Android app build.