Skip to content

[Bug]: Android split screen on One UI restarts Orca Mobile, or squeezes it once the restart is prevented #36305

Closed

Description

@Nelef

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?

  1. Galaxy Z Fold7, One UI 9.0, unfolded. Open a session in Orca Mobile.
  2. Put Orca in split screen next to any app (Calculator here).
  3. Current main: the session closes and photo attach fails. With density only: the pane leaves an empty band and button labels are clipped.

Anything else that might help:

Activity

  1. added theissue type on Oct 30, 2026
  2. AmoabaKelvin commented on Nov 1, 2026

    @AmoabaKelvin
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmobile

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions