Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X
Votes
0
Found in
2019.4
2019.4.12f1
2021.1
Issue ID
1285223
Regression
No
[Android] Screen.SetResolution() does not set Safe Area to correct values
On Android devices with notches (E.g. Huawei Nova 5T and OnePlus 6T), Screen.safeArea does not return the correct value after setting the screen resolution via Screen.SetResolution() until we rotate the device. Screen.safeArea.ToString() returns wrong (old) safe area.
Steps:
1. Build and Run the attached project on Android device with a notch ("AndroidSafeAreaBug.zip")
2. On device: check and memorize value 'x' (on OnePlus 6T it was "x:79").
3. On device: click on Toggle Resolution (notice: resolution was changed from 1080P to 720P)
4. On device: check 'x' value now
Expected: 'x' value becomes smaller (on OnePlus 6T, instead of 'x:79' it becomes 'x:53')
Actual: 'x' value stays at the same number even after the resolution has been changed. Rotating phone 180 degrees and back fixes the problem.
Reproduced with: 2019.4.12f1, 2020.1.8f1, 2020.2.0b6, 2021.1.0a2.
Couldn't test with: 2018.4.28f1 (errors in the Console).
Reproduced with:
VLNQA00229, Oneplus OnePlus6T (ONEPLUS A6013), Android 9, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
354652103384673, Samsung Galaxy S10 (SM-G975F), Android 10.0, CPU: Exynos 9820 (ARMv8), GPU: Mali-G76
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
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Memory leak warnings are constantly thrown when Generating Font Atlas in Font Asset Creator with 4096x8192 Atlas Resolution
- “Glyph rendering has been aborted due to sampling point size” Log is printed and Font Atlas is not generated when Atlas Resolution is 8192x8192, and the Render Mode is SDF
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
Resolution Note (fix version 2020.2):
SafeArea size correctly initialized if resolution changes.
Fixed in 2021.1.0a7
Resolution Note (fix version 2019.4):
fixed in 2019.4.19f1