- Create a new layout for footer prefs. - Create a new FooterPreference type to use the layout - Create a Mixin to create and add the pref to screen - Create a new lifecycle observer type to invoke mixin at right time - Switch SettingsPreferenceFragment to use footer mixin. - Switch FingerprintSettings to use the new footer pref. Bug: 33579394 Test: RunSettingsRoboTests Change-Id: I548ac39a0d120196a7ffed09b4f98bd9a80bae90
		
			
				
	
	
		
			27 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!--
 | |
|      Copyright (C) 2016 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.
 | |
| -->
 | |
| <vector xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|         android:width="24dp"
 | |
|         android:height="24dp"
 | |
|         android:viewportWidth="24.0"
 | |
|         android:viewportHeight="24.0"
 | |
|         android:tint="?android:attr/textColorSecondary">
 | |
|     <path
 | |
|         android:fillColor="#000000"
 | |
|         android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z"/>
 | |
| </vector>
 |