diff options
| author | 2022-04-01 12:01:22 +0800 | |
|---|---|---|
| committer | 2022-04-11 07:00:17 +0000 | |
| commit | 71eaca7ede7d87162a608f5b255eb2d555e1a0b7 (patch) | |
| tree | d0380d5bee196d15fa8fe85cd09d08fff5820e53 /libs/androidfw/StringPool.cpp | |
| parent | 194d7396e2357b038d91c5d7a1798c6c523ceffd (diff) | |
Fixed status bar glitch for apps that access internal res
In 12L, to support mulit-display devices, we changed the way to get the
status bar height by adding an API to calculate instead of directly
reading the resource of status_bar_height.
However, some apps still using Resources.getIdentify() to get this
internal resources dimen as status bar height to layout their UI which
cause status bar glitch in their app.
For compatibility purpose:
1. Create a new dimen res status_bar_height_default which will be used
by framework to determine the status bar heigth
2. For status_bar_height
- Set the value to the size which already consider the cutout size
for defualt display as before so that it won't breaking existing
app.
- It is only used for apps using Resources.getIdentifier()
Bug: 216782082
Test: verified on the apps with such issue.
Change-Id: I306efa187ffa69223c06fd248cfe57d183f96c59
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions