instantnoodlep: Relocate fwb dimens to dimens.xml

* Also unset status_bar_height_landscape while at it.

Change-Id: I2d030b46d94482878aa260e2edfd3a6a07c641ac
This commit is contained in:
LuK1337 2021-02-11 21:43:44 +01:00
parent 607d786a81
commit 1e7ad0f70c
2 changed files with 27 additions and 7 deletions

View File

@ -399,9 +399,6 @@
<item>7373</item> <item>7373</item>
</integer-array> </integer-array>
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">8dp</dimen>
<!-- The bounding path of the cutout region of the main built-in display. <!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}. {@link android.util.PathParser}.
@ -420,8 +417,4 @@
black in software (to avoid aliasing or emulate a cutout that is not physically existent). black in software (to avoid aliasing or emulate a cutout that is not physically existent).
--> -->
<bool name="config_fillMainBuiltInDisplayCutout">true</bool> <bool name="config_fillMainBuiltInDisplayCutout">true</bool>
<!-- Height of the status bar -->
<dimen name="status_bar_height_portrait">138px</dimen>
<dimen name="status_bar_height_landscape">138px</dimen>
</resources> </resources>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/assets/res/any/dimens.xml
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources>
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_portrait">138px</dimen>
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">8dp</dimen>
</resources>