Add "See All" page for Recent Location Access
Screenshots: http://shortn/_UPy8KFSeSj Bug: 180533061 Test: manual on device Change-Id: Ib77bc0705835520ed1a2d3b7f662088ed838e53e
This commit is contained in:
20
res/xml/location_recent_access_see_all.xml
Normal file
20
res/xml/location_recent_access_see_all.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 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/location_category_recent_location_access"
|
||||
android:key="all_recent_location_access"
|
||||
settings:controller="com.android.settings.location.RecentLocationAccessSeeAllPreferenceController">
|
||||
|
||||
</PreferenceScreen>
|
@@ -27,6 +27,13 @@
|
||||
settings:controller=
|
||||
"com.android.settings.location.RecentLocationAccessPreferenceController"/>
|
||||
|
||||
<Preference
|
||||
android:key="recent_location_access_see_all_button"
|
||||
android:title="@string/location_recent_location_access_see_all"
|
||||
android:icon="@drawable/ic_chevron_right_24dp"
|
||||
android:fragment="com.android.settings.location.RecentLocationAccessSeeAllFragment"
|
||||
settings:searchable="false"/>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="location_advanced_settings"
|
||||
android:layout="@layout/preference_category_no_label"
|
||||
|
@@ -23,11 +23,18 @@
|
||||
settings:keywords="@string/keywords_location">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="recent_location_requests"
|
||||
android:title="@string/location_category_recent_location_requests"
|
||||
android:key="recent_location_access"
|
||||
android:title="@string/location_category_recent_location_access"
|
||||
settings:controller=
|
||||
"com.android.settings.location.RecentLocationAccessPreferenceController"/>
|
||||
|
||||
<Preference
|
||||
android:key="recent_location_access_see_all_button"
|
||||
android:title="@string/location_recent_location_access_see_all"
|
||||
android:icon="@drawable/ic_chevron_right_24dp"
|
||||
android:fragment="com.android.settings.location.RecentLocationAccessSeeAllFragment"
|
||||
settings:searchable="false"/>
|
||||
|
||||
<!-- This preference category gets removed if new_recent_location_ui is disabled -->
|
||||
<Preference
|
||||
android:key="app_level_permissions"
|
||||
|
@@ -23,11 +23,20 @@
|
||||
settings:keywords="@string/keywords_location">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="recent_location_requests"
|
||||
android:title="@string/location_category_recent_location_requests"
|
||||
android:key="recent_location_access"
|
||||
android:title="@string/location_category_recent_location_access"
|
||||
settings:controller=
|
||||
"com.android.settings.location.RecentLocationAccessPreferenceController"/>
|
||||
|
||||
<Preference
|
||||
android:key="recent_location_access_see_all_button"
|
||||
android:title="@string/location_recent_location_access_see_all"
|
||||
android:icon="@drawable/ic_chevron_right_24dp"
|
||||
android:fragment="com.android.settings.location.RecentLocationAccessSeeAllFragment"
|
||||
settings:controller="com.android.settings.core.WorkPreferenceController"
|
||||
settings:forWork="true"
|
||||
settings:searchable="false"/>
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:key="managed_profile_location_switch"
|
||||
android:title="@string/managed_profile_location_switch_title"
|
||||
|
Reference in New Issue
Block a user