Add controllers for default app shortcut preferences.
- add the default app shortcut preferences to the preference screen xml instead of creating them dynamically in the fragment. - add controller for each of the shortcut preference. - move the corresponding shortcut detail settings into the appinfo package. - add individual preference screen xml for the shortcut detail settings instead of using the shared screen template. Bug: 69384089 Test: make RunSettingsRoboTests Change-Id: I7bc0b3b727e87fb1a32a82291e64b8e290947671
This commit is contained in:
33
res/xml/write_system_settings_permissions_details.xml
Normal file
33
res/xml/write_system_settings_permissions_details.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2017 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"
|
||||
android:key="write_system_settings_permission_detail_settings"
|
||||
android:title="@string/write_settings">
|
||||
|
||||
<SwitchPreference
|
||||
android:key="app_ops_settings_switch"
|
||||
android:title="@string/permit_write_settings"/>
|
||||
|
||||
<Preference
|
||||
android:key="app_ops_settings_preference"
|
||||
android:title="@string/write_settings_preference"/>
|
||||
|
||||
<Preference
|
||||
android:summary="@string/write_settings_description"
|
||||
android:selectable="false"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user