Cherish: notch-city: Add 3 mode display cutout handler [3/3]

[AgentFabulous - POSP]
- Add the respective control in here
- Also add a little video illustration I made to go along with it :)

Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
Signed-off-by: Arghya Chanda <arghyac35@gmail.com>
Change-Id: I8fe68610a50e2a430363dc09f4a9adb8a4563ad0
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Kshitij Gupta
2019-01-04 04:01:57 +05:30
committed by Hưng Phan
parent 0f1e289798
commit 7c352e5482
7 changed files with 182 additions and 0 deletions

37
res/xml/cutout.xml Normal file
View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2018 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.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/cutout_main"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="cutout_settings">
<ListPreference
android:key="display_cutout_style"
android:title="@string/display_cutout_style_title"
android:persistent="false"
android:entries="@array/display_cutout_style_entries"
android:entryValues="@array/display_cutout_style_values" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="stock_statusbar_in_hide"
android:title="@string/stock_statusbar_in_hide"
android:summary="@string/stock_statusbar_in_hide_summary"
android:defaultValue="true" />
</PreferenceScreen>