Add user selectable Default Browser feature
- add Default Apps section in Apps / Advanced - follow UX spec This change depends on a Framework change which adds new APIs in PackageMaager for setting and getting the default Browser App package name. See bug #20144393 Change-Id: I2ff456eeaced9f740f4dd6fb6bccea6de6ea1308
This commit is contained in:
@@ -19,6 +19,12 @@
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:key="applications_settings">
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="default_apps"
|
||||
android:fragment="com.android.settings.applications.ManageDefaultApps"
|
||||
android:title="@string/default_apps_title"
|
||||
settings:keywords="@string/keywords_default_apps" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:key="manage_perms"
|
||||
android:fragment="com.android.settings.applications.ManagePermissions"
|
||||
|
||||
28
res/xml/default_apps.xml
Normal file
28
res/xml/default_apps.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2015 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/com.android.settings"
|
||||
android:key="default_apps">
|
||||
|
||||
<com.android.settings.applications.DefaultBrowserPreference
|
||||
android:key="default_browser"
|
||||
android:title="@string/default_browser_title"
|
||||
android:summary="@string/default_browser_title_none"
|
||||
/>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user