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:
@@ -3985,7 +3985,7 @@
|
||||
<string name="managed_profile_location_switch_title">Location for work profile</string>
|
||||
<!-- [CHAR LIMIT=30] Location settings screen. It's a link that directs the user to a page that
|
||||
shows the location permission setting for each installed app -->
|
||||
<string name="location_app_level_permissions">App access to location</string>
|
||||
<string name="location_app_level_permissions">Manage location permissions</string>
|
||||
<!-- Summary for app permission on Location settings page when location is off [CHAR LIMIT=NONE] -->
|
||||
<string name="location_app_permission_summary_location_off">Location is off</string>
|
||||
<!--
|
||||
@@ -4010,7 +4010,9 @@
|
||||
apps have access to location</item>
|
||||
</plurals>
|
||||
<!-- [CHAR LIMIT=50] Location settings screen, sub category for recent location access -->
|
||||
<string name="location_category_recent_location_access">Recent location access</string>
|
||||
<string name="location_category_recent_location_access">Past 24 hour access</string>
|
||||
<!-- Location settings screen, displayed when there're more than three recent location access apps [CHAR LIMIT=30] -->
|
||||
<string name="location_recent_location_access_see_all">See all</string>
|
||||
<!-- [CHAR LIMIT=30] Location settings screen, button to bring the user to view the details of recent location access -->
|
||||
<string name="location_recent_location_access_view_details">View details</string>
|
||||
<!-- Location settings screen, displayed when there's no recent app accessing location
|
||||
|
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