diff options
author | Jason Monk <jmonk@google.com> | 2014-03-03 16:11:30 -0500 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2014-03-07 13:35:34 -0500 |
commit | 41314973b44202fd0d1daea3e67bdc92e9110989 (patch) | |
tree | 551b3e15bf6cf415497d6c38f13a2b0af3325943 /res/xml/default_workspace.xml | |
parent | 1c471f4c3bd2336baabc147f9d22fffc9a880135 (diff) | |
download | android_packages_apps_Trebuchet-41314973b44202fd0d1daea3e67bdc92e9110989.tar.gz android_packages_apps_Trebuchet-41314973b44202fd0d1daea3e67bdc92e9110989.tar.bz2 android_packages_apps_Trebuchet-41314973b44202fd0d1daea3e67bdc92e9110989.zip |
Add support for uri favorites and resolve groups
Adds support for new types in default_workspace xml files.
Adds support to favorite that attempts to resolve an intent specified
by URI. If a logical choice can be found from the resolve, it adds the
shortcut.
Adds support for a resolve, which contains several favorites and attempts
to add the shortcuts until one is successful.
Bug: 10547358
Change-Id: Ia30341e77e7d4a0bd4a4f4e6a3d9ce2a48a46237
Diffstat (limited to 'res/xml/default_workspace.xml')
-rw-r--r-- | res/xml/default_workspace.xml | 49 |
1 files changed, 37 insertions, 12 deletions
diff --git a/res/xml/default_workspace.xml b/res/xml/default_workspace.xml index 26fc504f0..9bec86aa8 100644 --- a/res/xml/default_workspace.xml +++ b/res/xml/default_workspace.xml @@ -60,13 +60,21 @@ <!-- Far-right screen [4] --> <!-- Hotseat (We use the screen as the position of the item in the hotseat) --> - <favorite - launcher:packageName="com.android.dialer" - launcher:className="com.android.dialer.DialtactsActivity" + <!-- Dialer, Contacts, [All Apps], Messaging, Browser --> + <resolve launcher:container="-101" launcher:screen="0" launcher:x="0" - launcher:y="0" /> + launcher:y="0" > + <favorite launcher:uri="#Intent;action=android.intent.action.DIAL;end" /> + <favorite launcher:uri="tel:123" /> + <favorite launcher:uri="#Intent;action=android.intent.action.CALL_BUTTON;end" /> + + <favorite + launcher:packageName="com.android.dialer" + launcher:className="com.android.dialer.DialtactsActivity" /> + </resolve> + <favorite launcher:packageName="com.android.contacts" launcher:className="com.android.contacts.activities.PeopleActivity" @@ -74,18 +82,35 @@ launcher:screen="1" launcher:x="1" launcher:y="0" /> - <favorite - launcher:packageName="com.android.mms" - launcher:className="com.android.mms.ui.ConversationList" + + <resolve launcher:container="-101" launcher:screen="3" launcher:x="3" - launcher:y="0" /> - <favorite - launcher:packageName="com.android.browser" - launcher:className="com.android.browser.BrowserActivity" + launcher:y="0" > + <favorite + launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MESSAGING;end" /> + <favorite launcher:uri="sms:" /> + <favorite launcher:uri="smsto:" /> + <favorite launcher:uri="mms:" /> + <favorite launcher:uri="mmsto:" /> + + <favorite + launcher:packageName="com.android.mms" + launcher:className="com.android.mms.ui.ConversationList" /> + </resolve> + <resolve launcher:container="-101" launcher:screen="4" launcher:x="4" - launcher:y="0" /> + launcher:y="0" > + <favorite + launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_BROWSER;end" /> + <favorite launcher:uri="http://www.example.com/" /> + + <favorite + launcher:packageName="com.android.browser" + launcher:className="com.android.browser.BrowserActivity" /> + </resolve> + </favorites> |