Search Issue Tracker
By Design
Votes
0
Found in
2018.1.0a2
Issue ID
1084935
Regression
No
[Android] Tall screen with notch has a black bar instead of rendering in fullscreen
Steps to reproduce:
1. Create a new project
2. Switch to android platform
3. Go to Player Settings > Resolution and Presentation > Aspect Ratio > Custom and set it to 3
4. Deploy to device
Expected behaviour: Unity rendered fullscreen
Actual behaviour: A black bar in notch area
Reproduced on: 2018.2.10f1, 2018.3.0b3, 2019.1.0a3 (0a3d74)
Reproduced on:
VLNQA00173, Xiaomi Redmi 6Pro (Redmi 6 Pro), Android 8.1.0, CPU: Snapdragon 625 (MSM8953), GPU: Adreno (TM) 506
Not reproduced on:
VLNQA00025, Xiaomi Mi 5s (MI 5s), Android 6.0.1, CPU: Snapdragon 820 MSM8996, GPU: Adreno (TM) 530
VLNQA00166, Huawei P20 (EML-L29), Android 8.1.0, CPU: HiSilicon Kirin 970, GPU: Mali-G72
By design: letterbox(black bars) is applied by the android on all apps that don't explicitly define that they should be rendered around the notch. Unfortunately means to control notch behaviour on devices running Android <9 is entirely dependent on manufacturer, so there is no unified solution for that.
So far there are several options for controlling notch behaviour on Android <9:
Huawei: add to manifest <meta-data android:name="android.notch_support" android:value="true"/>
Xiaomi: add to manifest <meta-data android:name="notch.config" android:value="portrait|landscape"/>
Others: should react to "layoutInDisplayCutoutMode" activity theme attribute, but that's not guaranteed
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
motachimseo
Apr 12, 2020 18:33
Well, this is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a marvelous job!
https://androidblue.com/windows-7-launcher-apk/
azeemonline
Sep 08, 2019 17:37
Android launchers Download
https://www.bestlaunchers.com/
SBoltonMW
Oct 22, 2018 18:55
I see that this has been resolved as 'By Design', but with the use of the "Screen.safeArea" command, if we do the workaround to make the application use the notch space as well, will the safe area return the proper value?
armnotstrong
Oct 12, 2018 04:42
Hi, has this been solved? how to deal with this?