Docs / Using Mediarium
Foldable and dual-screen phones
When you install Mediarium on your home screen, the page is drawn all the way to the edges of the screen, under the strip that holds the clock, signal and battery. No black bar is left at the top. Nothing of Mediarium is placed under those icons: the page keeps clear of them using the safe area your phone reports.
The foldable layout
On a phone that opens into a near-square screen, that strip leaves room to use. With the foldable layout on:
- Held upright: the header (menu, search, theme and profile) sits in the top strip, next to the clock and battery icons, instead of below them.
- Held sideways: the system icons sit at the right. The profile and theme buttons move into a strip down that side, under the icons, and the header keeps its room for the title and search. The tool buttons (players, help, report a problem, GitHub, support) move to the bottom of the menu on the left.
It follows the phone as you turn it or open and close the fold. The closed outer screen gets the same layout as the open one, and after a turn or a fold the page measures itself again for a few seconds, because the phone is slow to say how much room it left. If a black bar stays at the top or the right anyway, close the app and open it again.
Settings
Settings > Basics > General > Foldable and dual-screen:
- Foldable layout: Automatic (the default) turns it on when the installed app runs on a near-square screen that shows a system strip, or on an iPhone with a near-square screen (it draws its clock group without reporting a safe area). On forces it on, Off keeps the normal layout. The choice is kept in this browser, so you can set it differently on each device.
- Space kept free for the system icons: two sliders, one for the top strip (the width taken by the clock, signal and battery) and one for the side strip (the height taken by them). If the icons touch a button, move the slider until they don't.
- What your screen reports: the screen and window size, the pixel ratio and the safe area (top, right, bottom, left). If something looks wrong on your phone, these numbers are what to include when you tell us.
Notes
- If a black bar is still left at the top when the phone is held upright, remove the app from the home screen and add it again. The phone reads the setting that draws the page under the strip only when the app is added.
- Automatic cannot tell every foldable from every tablet. If it picks wrong, set it On or Off. Once a phone has shown a system strip in any posture, it is treated as a foldable in the other postures too, even when one of them reports no strip.
- After turning the phone or opening or closing the fold, the phone can keep the old window size and leave a dark bar at the top. The app asks the phone to measure again; if the bar stays, close the app and open it again.
- The light look keeps a dark band behind the system icons, because they are white.
- This is checked on the screens that have been tried. Tell us how it looks on yours (Reddit, GitHub, with a screenshot of the card above).