Cherish: Launch Statusbar items and LS shortcut editor

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
xyyx
2018-08-27 10:47:48 +00:00
committed by Hưng Phan
parent ce9c31f525
commit 42c5d4d25f
5 changed files with 151 additions and 0 deletions

View File

@@ -68,6 +68,19 @@
<!-- QS settings -->
<string name="qs_title">Quick settings</string>
<!-- Lockscreen shortcuts -->
<string name="ls_category">Lockscreen Items</string>
<string name="ls_tuner">Enable Lockscreen tuner</string>
<string name="lockscreen_shortcuts">Lockscreen shortcuts</string>
<string name="ls_shortcut_summary">Customize Lockscreen shortcuts</string>
<!-- Lockscreen icons -->
<string name="lockscreen_tuner_title">Lockscreen tuner</string>
<!-- Statusbar Items -->
<string name="sb_icons">Statusbar Icons</string>
<string name="statusbar_items_category">Statusbar items</string>
<!-- Status bar - icons -->
<string name="status_bar_icons_title">Status bar icons</string>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 The CherishOS 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"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/lockscreen_shortcuts">
<PreferenceCategory
android:key="lockscreen_tuner"
android:title="@string/ls_tuner">
<Preference
android:title="@string/lockscreen_tuner_title" >
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.android.systemui"
android:targetClass="com.android.systemui.tuner.LockscreenActivity" />
</Preference>
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -17,5 +17,18 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/lockscreen_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:key="lockscreen_category"
android:title="@string/ls_category">
<Preference
android:key="lockscreen_shortcuts"
android:fragment="com.cherish.settings.fragments.LockscreenShortcuts"
android:title="@string/lockscreen_shortcuts"
android:summary="@string/ls_shortcut_summary" />
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -14,5 +14,19 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/statusbar_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:key="statusbar_icons"
android:title="@string/sb_icons">
<Preference
android:key="systemui_tuner_statusbar"
android:title="@string/statusbar_items_category" >
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.android.systemui"
android:targetClass="com.android.systemui.tuner.StatusbarItemsActivity" />
</Preference>
</PreferenceCategory>
</PreferenceScreen>