summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Marado <mmarado@cyngn.com>2014-12-01 20:00:15 +0000
committerMarcos Marado <mmarado@cyngn.com>2014-12-02 11:47:24 +0000
commitd372b68df6b35cc3a095828dc5438ce9d0197a73 (patch)
tree84e64124be40ad5c70bcaed7d6f7471ef076df5f
parent5ebae1b2aa76a1b5252540b6fba5f7b5fbbb5e26 (diff)
downloadandroid_packages_apps_Trebuchet-d372b68df6b35cc3a095828dc5438ce9d0197a73.tar.gz
android_packages_apps_Trebuchet-d372b68df6b35cc3a095828dc5438ce9d0197a73.tar.bz2
android_packages_apps_Trebuchet-d372b68df6b35cc3a095828dc5438ce9d0197a73.zip
If device doesn't have dialer, show file manager shortcut instead
Tablets like flo do not have a dialer, and they would end up with two contacts shortcuts side by side. This patch aims to, on the devices where no dialer is available, use that spot with anything else. Change-Id: Ib0729be5b938bc909c446fe6c95a3d9f48aa660d
-rw-r--r--res/xml/default_workspace_5x6.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/xml/default_workspace_5x6.xml b/res/xml/default_workspace_5x6.xml
index d42a93a6a..92764d4cb 100644
--- a/res/xml/default_workspace_5x6.xml
+++ b/res/xml/default_workspace_5x6.xml
@@ -60,19 +60,21 @@
<!-- Far-right screen [4] -->
<!-- Hotseat (We use the screen as the position of the item in the hotseat) -->
- <!-- Dialer, Contacts, [All Apps], Messaging, Browser -->
+ <!-- Dialer (if available, fallback to File Manager), Contacts, [All Apps], Messaging, Browser -->
<resolve
launcher:container="-101"
launcher:screen="1"
launcher:x="1"
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" />
+ <favorite
+ launcher:packageName="com.cyanogenmod.filemanager"
+ launcher:className="com.cyanogenmod.filemanager.activities.NavigationActivity" />
</resolve>
<favorite