If a notification listener has access via the companion device manager api, list the name(s) of the associated devices to give the user more context about why the app has notification listener access. Test: settings unit Bug: 181125174 Change-Id: I01771b2c4e136fe16d23e89f33f85f63803e3f7c
62 lines
3.1 KiB
XML
62 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2019 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"
|
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
|
android:key="notification_access_permission_detail_settings"
|
|
android:title="@string/manage_notification_access_title">
|
|
|
|
<com.android.settingslib.widget.LayoutPreference
|
|
android:key="pref_app_header"
|
|
android:layout="@layout/settings_entity_header"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.HeaderPreferenceController"/>
|
|
|
|
<com.android.settings.widget.FilterTouchesSwitchPreference
|
|
android:key="notification_access_switch"
|
|
android:title="@string/notification_access_detail_switch"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.ApprovalPreferenceController"/>
|
|
|
|
<CheckBoxPreference
|
|
android:key="type_filter_ongoing"
|
|
android:title="@string/notif_type_ongoing"
|
|
android:icon="@drawable/ic_ongoing_notification"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.OngoingTypeFilterPreferenceController"/>
|
|
<CheckBoxPreference
|
|
android:key="type_filter_conversation"
|
|
android:title="@string/notif_type_conversation"
|
|
android:icon="@drawable/ic_promote_conversation"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.ConversationTypeFilterPreferenceController"/>
|
|
<CheckBoxPreference
|
|
android:key="type_filter_alerting"
|
|
android:title="@string/notif_type_alerting"
|
|
android:icon="@drawable/ic_notification_alert"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.AlertingTypeFilterPreferenceController"/>
|
|
<CheckBoxPreference
|
|
android:key="type_filter_silent"
|
|
android:title="@string/notif_type_silent"
|
|
android:icon="@drawable/ic_notification_silence"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.SilentTypeFilterPreferenceController"/>
|
|
|
|
<Preference
|
|
android:key="bridged_apps"
|
|
android:title="@string/notif_listener_excluded_app_title"
|
|
android:fragment="com.android.settings.applications.specialaccess.notificationaccess.BridgedAppsSettings"
|
|
settings:searchable="false"
|
|
settings:controller="com.android.settings.applications.specialaccess.notificationaccess.BridgedAppsPreferenceController" />
|
|
|
|
</PreferenceScreen> |