Allow system apps to add to settings dashboard
Allow system apps to add a tile to the top level of settings that links to an activity through adding a filter for a specific action. Determine the info for the tile based off manifest info for the activity. Also allow the same for managed profiles, but show a dialog in between to select which profile. The category in which the item is to be placed must be in meta-data. The icon and title can be specified through meta-data as well or if unspecified the activity's label and icon will be used. Also added an optional <external-tiles> tag to the dashboard category xml, this allows Settings to put external tiles in the middle of some categories (Personal does this). Bug: 19443117 Change-Id: Idc9938d1549d181103a3030a8784b527215a8399
This commit is contained in:
@@ -213,6 +213,7 @@
|
||||
<!-- User spinner -->
|
||||
<dimen name="user_spinner_height">72dp</dimen>
|
||||
<dimen name="user_spinner_padding">4dp</dimen>
|
||||
<dimen name="user_spinner_padding_sides">20dp</dimen>
|
||||
<dimen name="user_spinner_item_height">56dp</dimen>
|
||||
|
||||
<!-- CheckBoxPreference -->
|
||||
|
||||
@@ -33,4 +33,8 @@
|
||||
<item>@string/input_method_selector_always_show_value</item>
|
||||
<item>@string/input_method_selector_always_hide_value</item>
|
||||
</string-array>
|
||||
<string name="category_key_wireless">com.android.settings.category.wireless</string>
|
||||
<string name="category_key_device">com.android.settings.category.device</string>
|
||||
<string name="category_key_personal">com.android.settings.category.personal</string>
|
||||
<string name="category_key_system">com.android.settings.category.system</string>
|
||||
</resources>
|
||||
|
||||
@@ -6132,4 +6132,7 @@
|
||||
<!-- Warning toast shown when data usage screen can't find specified app -->
|
||||
<string name="unknown_app">Unknown app</string>
|
||||
|
||||
<!-- Title for profile selection dialog [CHAR LIMIT=30] -->
|
||||
<string name="choose_profile">Choose Profile</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user