OSDN Git Service

Link to dnd settings from notification settings
[android-x86/packages-apps-Settings.git] / res / xml / configure_notification_settings.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2015 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18                   xmlns:settings="http://schemas.android.com/apk/res-auto"
19                   android:title="@string/configure_notification_settings"
20                   android:key="configure_notification_settings">
21
22     <!-- When device is locked -->
23     <com.android.settings.RestrictedListPreference
24         android:key="lock_screen_notifications"
25         android:title="@string/lock_screen_notifications_title"
26         android:summary="@string/summary_placeholder"/>
27
28     <!-- Notification badging -->
29     <SwitchPreference
30         android:key="notification_badging"
31         android:title="@string/notification_badging_title"/>
32
33     <!-- Pulse notification light -->
34     <SwitchPreference
35         android:key="notification_pulse"
36         android:title="@string/notification_pulse_title"/>
37
38     <!-- Default notification ringtone -->
39     <com.android.settings.DefaultRingtonePreference
40         android:key="notification_default_ringtone"
41         android:title="@string/notification_ringtone_title"
42         android:dialogTitle="@string/notification_ringtone_title"
43         android:summary="@string/summary_placeholder"
44         android:ringtoneType="notification" />
45
46     <Preference
47         android:key="gesture_swipe_down_fingerprint_notifications"
48         android:title="@string/fingerprint_swipe_for_notifications_title"
49         android:fragment="com.android.settings.gestures.SwipeToNotificationSettings" />
50
51     <com.android.settingslib.RestrictedPreference
52         android:key="zen_mode_notifications"
53         android:title="@string/zen_mode_settings_title"
54         settings:useAdminDisabledSummary="true"
55         android:fragment="com.android.settings.notification.ZenModeSettings"
56         settings:allowDividerAbove="false" />
57
58     <!-- Empty category to draw divider -->
59     <PreferenceCategory
60         android:key="all_notifications_divider"
61         android:order="20"/>
62
63     <PreferenceCategory
64         android:key="recent_notifications_category"
65         android:title="@string/recent_notifications"
66         settings:allowDividerAbove="false"
67         android:order="21">
68         <!-- Placeholder for a list of recent apps -->
69
70         <!-- See all apps button -->
71         <Preference
72             android:title="@string/notifications_title"
73             android:key="all_notifications"
74             android:order="22">
75             <intent
76                 android:action="android.intent.action.MAIN"
77                 android:targetPackage="com.android.settings"
78                 android:targetClass="com.android.settings.Settings$ManageApplicationsActivity">
79             </intent>
80         </Preference>
81     </PreferenceCategory>
82
83     <!-- Place work profile section at the bottom to avoid users thinking that any of the
84          above settings are specific to the work profile -->
85     <PreferenceCategory
86         android:key="lock_screen_notifications_profile_header"
87         android:title="@string/profile_section_header"
88         android:order="23">
89
90         <com.android.settings.RestrictedListPreference
91             android:key="lock_screen_notifications_profile"
92             android:title="@string/lock_screen_notifications_title"
93             android:summary="@string/summary_placeholder"
94             android:order="24"/>
95
96     </PreferenceCategory>
97
98 </PreferenceScreen>