Add compatibility change preference
Add UI for modifying the compatibility change overrides per-app. Test: make RunSettingsRoboTests ROBOTEST_FILTER=PlatformCompatDashboardTest Bug: 138280620 Change-Id: I07c7602e7a439e47b0b1fa59b047231afbbc0ab6
This commit is contained in:
@@ -10696,6 +10696,17 @@
|
||||
<item>@string/game_driver_app_preference_system</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Title for App Compatibility Changes dashboard where developers can configure per-app overrides for compatibility changes [CHAR LIMIT=50] -->
|
||||
<string name="platform_compat_dashboard_title">App Compatibility Changes</string>
|
||||
<!-- Summary for App Compatibility Changes dashboard [CHAR LIMIT=NONE] -->
|
||||
<string name="platform_compat_dashboard_summary">Modify app compatibility change overrides</string>
|
||||
<!-- Title for default enabled app compat changes category [CHAR LIMIT=50] -->
|
||||
<string name="platform_compat_default_enabled_title">Default enabled changes</string>
|
||||
<!-- Title for default disabled app compat changes category [CHAR LIMIT=50] -->
|
||||
<string name="platform_compat_default_disabled_title">Default disabled changes</string>
|
||||
<!-- Title for target SDK gated app compat changes category [CHAR LIMIT=50] -->
|
||||
<string name="platform_compat_target_sdk_title">Enabled after SDK <xliff:g id="number" example="29">%d</xliff:g></string>
|
||||
|
||||
<!-- Slices Strings -->
|
||||
|
||||
<!-- Summary text on a card explaining that a setting does not exist / is not supported on the device [CHAR_LIMIT=NONE]-->
|
||||
|
@@ -226,6 +226,13 @@
|
||||
android:fragment="com.android.settings.development.gamedriver.GameDriverDashboard"
|
||||
settings:searchable="false" />
|
||||
|
||||
<Preference
|
||||
android:key="platform_compat_dashboard"
|
||||
android:title="@string/platform_compat_dashboard_title"
|
||||
android:summary="@string/platform_compat_dashboard_summary"
|
||||
android:fragment="com.android.settings.development.compat.PlatformCompatDashboard"
|
||||
/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
|
23
res/xml/platform_compat_settings.xml
Normal file
23
res/xml/platform_compat_settings.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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:key="platform_compat_dashboard"
|
||||
android:title="@string/platform_compat_dashboard_title">
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user