Add statusbar height to cover the notch on Xiaomi Mi A2 Lite
This commit is contained in:
parent
0288874c28
commit
65c7d99e97
7
Xiaomi/MiA2Lite/Android.mk
Normal file
7
Xiaomi/MiA2Lite/Android.mk
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mia2lite
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
|
||||||
|
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||||
|
include $(BUILD_PACKAGE)
|
10
Xiaomi/MiA2Lite/AndroidManifest.xml
Normal file
10
Xiaomi/MiA2Lite/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="me.phh.treble.overlay.xiaomi.mia2lite"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="1.0">
|
||||||
|
<overlay android:targetPackage="android"
|
||||||
|
android:requiredSystemPropertyName="ro.vendor.product.device"
|
||||||
|
android:requiredSystemPropertyValue="daisy"
|
||||||
|
android:priority="22"
|
||||||
|
android:isStatic="true" />
|
||||||
|
</manifest>
|
22
Xiaomi/MiA2Lite/res/values-land/notch.xml
Normal file
22
Xiaomi/MiA2Lite/res/values-land/notch.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
** Copyright 2017, 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 -->
|
||||||
|
<dimen name="status_bar_height">24dp</dimen>
|
||||||
|
</resources>
|
22
Xiaomi/MiA2Lite/res/values/notch.xml
Normal file
22
Xiaomi/MiA2Lite/res/values/notch.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
** Copyright 2017, 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 -->
|
||||||
|
<dimen name="status_bar_height">94px</dimen>
|
||||||
|
</resources>
|
|
@ -19,6 +19,7 @@ PRODUCT_PACKAGES += \
|
||||||
treble-overlay-xiaomi-mi8se \
|
treble-overlay-xiaomi-mi8se \
|
||||||
treble-overlay-xiaomi-mimix2s \
|
treble-overlay-xiaomi-mimix2s \
|
||||||
treble-overlay-xiaomi-redmi6pro \
|
treble-overlay-xiaomi-redmi6pro \
|
||||||
|
treble-overlay-xiaomi-mia2lite \
|
||||||
HardwareOverlayPicker \
|
HardwareOverlayPicker \
|
||||||
QtiAudio
|
QtiAudio
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue