sm7250-common: Enable Alert Slider UI

Signed-off-by: CryllicBuster273 <cryllicbuster273@pixelexperience.org>
Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: Sipun Ku Mahanta <sipunkumar85@gmail.com>
Change-Id: I18d0a0a21c5b5793dc12acae8ccdf18335719038
This commit is contained in:
Hernán Castañón Álvarez
2020-09-01 17:12:00 +02:00
committed by Sandeep-FED
parent 78fe83ac2b
commit 19b503385a
2 changed files with 34 additions and 0 deletions

View File

@@ -62,4 +62,12 @@
<!-- Display has physical cutout -->
<bool name="config_physicalDisplayCutout">true</bool>
<!-- Whether device has physical tri state switch -->
<bool name="config_hasAlertSlider">true</bool>
<!-- The location of the devices physical tri state switch
0: Left side
1: Right side -->
<integer name="config_alertSliderLocation">1</integer>
</resources>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 PixelExperience 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>
<!-- Alert Slider UI -->
<dimen name="tri_state_down_dialog_position_l">503px</dimen>
<dimen name="tri_state_middle_dialog_position_l">503px</dimen>
<dimen name="tri_state_up_dialog_position_l">503px</dimen>
<dimen name="tri_state_up_dialog_position_deep">24px</dimen>
<dimen name="tri_state_up_dialog_position_deep_land">21px</dimen>
<dimen name="tri_state_down_dialog_position">627px</dimen>
<dimen name="tri_state_middle_dialog_position">480px</dimen>
<dimen name="tri_state_up_dialog_position">336px</dimen>
</resources>