Remove advanced button from location settings

Change-Id: I9185949edffbc4588287221b81d30e136e755f85
Fixes: 124059127
Test: manual
This commit is contained in:
Fan Zhang
2019-02-08 12:36:13 -08:00
parent 7743e12ce6
commit c7cef5ee43

View File

@@ -14,7 +14,8 @@
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="location_settings"
android:title="@string/location_settings_title"
@@ -24,11 +25,9 @@
android:key="apps_dashboard"
android:layout="@layout/app_entities_header"
android:selectable="false"
settings:allowDividerBelow="true" />
settings:allowDividerBelow="true"/>
<PreferenceCategory
android:key="location_advanced_settings"
settings:initialExpandedChildrenCount="2">
<PreferenceCategory android:key="location_advanced_settings">
<!-- This preference category gets removed if new_recent_location_ui is disabled -->
<Preference
@@ -36,7 +35,7 @@
android:title="@string/location_app_level_permissions">
<intent android:action="android.intent.action.MANAGE_PERMISSION_APPS">
<extra android:name="android.intent.extra.PERMISSION_NAME"
android:value="android.permission-group.LOCATION" />
android:value="android.permission-group.LOCATION"/>
</intent>
</Preference>
@@ -51,10 +50,10 @@
android:title="@string/managed_profile_location_switch_title"
settings:useAdminDisabledSummary="true"
android:enabled="false"
android:selectable="true" />
android:selectable="true"/>
<PreferenceCategory
android:key="location_services" />
android:key="location_services"/>
</PreferenceCategory>
<PreferenceCategory