This change is to reduce ambiguity as we're adding the option to style the preference like a checkbox as well. Bug: 190180868 Test: SelectorWithWidgetPreferenceTest, RunSettingsLibRoboTests Change-Id: Ie414347bf67ed394ef495604890c5851fc42dbc7
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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"
 | |
|     xmlns:settings="http://schemas.android.com/apk/res-auto"
 | |
|     android:title="@string/zen_mode_restrict_notifications_title">
 | |
| 
 | |
|     <PreferenceCategory
 | |
|         android:key="restrict_category"
 | |
|         android:title="@string/zen_mode_restrict_notifications_category">
 | |
|         <com.android.settingslib.widget.SelectorWithWidgetPreference
 | |
|             android:key="zen_mute_notifications"
 | |
|             android:title="@string/zen_mode_restrict_notifications_mute"
 | |
|             android:summary="@string/zen_mode_restrict_notifications_mute_summary"
 | |
|             settings:searchable="false"/>
 | |
| 
 | |
|         <com.android.settingslib.widget.SelectorWithWidgetPreference
 | |
|             android:key="zen_hide_notifications"
 | |
|             android:title="@string/zen_mode_restrict_notifications_hide"
 | |
|             android:summary="@string/zen_mode_restrict_notifications_hide_summary"
 | |
|             settings:searchable="false"/>
 | |
| 
 | |
|         <com.android.settingslib.widget.SelectorWithWidgetPreference
 | |
|             android:key="zen_custom"
 | |
|             android:title="@string/zen_mode_restrict_notifications_custom"
 | |
|             settings:searchable="false"/>
 | |
| 
 | |
|     </PreferenceCategory>
 | |
|     <com.android.settingslib.widget.FooterPreference />
 | |
| 
 | |
| </PreferenceScreen>
 |