WifiCallingPreference Slice Provider: 1. If Wifi calling is not enabled - display message to user to enable Wifi calling 2. Else if Wifi preference is not editable - return a null Slice 3. Else provide a slice with rows - first row giving current pref information, followed by preference items (in each row). wifi_only is displayed only when it is allowed to display it. Each row with preference item has specific intent action. WifiCallingPreference Slice BroadcastReceiver: 1. If only Wifi calling is enabled & Wifi preference is editable & there is a change in current value modify wifi pref setting 2. And Ask to re-query the slice in one second to display updated settings if 1 is valid or display appropriate message. Clean-up: 1. Return null instead of non-actionable slices. 2. Use getText to get string resources. 3. Remove unnecessary extra variables. Bug: 79548264 Test: Use support-slices-demos-debug.apk to test on device Change-Id: I186f19be2007c2331eaf6195e70b4a9c635adf9e
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<!--
|
|
~ Copyright 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.
|
|
-->
|
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:width="24dp"
|
|
android:height="24dp"
|
|
android:viewportWidth="24.0"
|
|
android:viewportHeight="24.0">
|
|
<path
|
|
android:fillColor="#FF000000"
|
|
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/>
|
|
</vector>
|