• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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:key="app_notifications"
20        android:title="@string/notifications_title">
21
22    <com.android.settingslib.widget.LayoutPreference
23        android:key="pref_app_header"
24        android:layout="@layout/settings_entity_header" />
25
26    <com.android.settings.widget.SettingsMainSwitchPreference
27        android:key="block" />
28
29    <com.android.settingslib.widget.FooterPreference
30        android:key="block_desc" />
31
32
33    <!-- Conversations added here -->
34    <PreferenceCategory
35        android:title="@string/conversations_category_title"
36        android:key="conversations"
37        android:visibility="gone"
38        settings:allowDividerAbove="false"
39        settings:allowDividerBelow="false">
40    </PreferenceCategory>
41    <com.android.settingslib.RestrictedSwitchPreference
42        android:key="invalid_conversation_switch"
43        android:title="@string/conversation_section_switch_title" />
44    <Preference
45        android:key="invalid_conversation_info"/>
46
47    <!--Bubbles -->
48    <Preference
49        android:key="bubble_pref_link"
50        android:title="@string/notification_bubbles_title"
51        android:icon="@drawable/ic_create_bubble"
52        settings:allowDividerAbove="false"
53        settings:controller="com.android.settings.notification.app.BubbleSummaryPreferenceController">
54    </Preference>
55
56    <!-- Channels/Channel groups added here -->
57    <PreferenceCategory
58        android:key="channels"
59        android:layout="@layout/empty_view"
60        settings:allowDividerAbove="true"
61        settings:allowDividerBelow="true" />
62
63    <!-- Show badge -->
64    <com.android.settingslib.RestrictedSwitchPreference
65        android:key="badge"
66        android:title="@string/notification_badge_title"
67        settings:useAdditionalSummary="true"
68        android:order="1001"
69        settings:allowDividerAbove="true"
70        settings:restrictedSwitchSummary="@string/enabled_by_admin" />
71
72    <!-- Importance toggle -->
73    <com.android.settingslib.RestrictedSwitchPreference
74        android:key="allow_sound"
75        android:title="@string/allow_interruption"
76        android:summary="@string/allow_interruption_summary" />
77
78    <!-- Visibility Override -->
79    <com.android.settings.RestrictedListPreference
80        android:key="visibility_override"
81        android:title="@string/app_notification_visibility_override_title"/>
82
83    <!-- Bypass DND -->
84    <com.android.settingslib.RestrictedSwitchPreference
85        android:key="bypass_dnd"
86        android:title="@string/app_notification_override_dnd_title"
87        android:summary="@string/app_notification_override_dnd_summary"/>
88
89        <Preference
90            android:key="app_link"
91            android:order="1003"
92            android:icon="@drawable/ic_settings_24dp"
93            android:title="@string/app_settings_link" />
94
95    <com.android.settingslib.widget.FooterPreference
96        android:key="desc"
97        android:order="5000" />
98
99    <com.android.settingslib.widget.FooterPreference
100        android:key="deleted"
101        android:order="8000" />
102
103</PreferenceScreen>
104