summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/LauncherModel.java
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-04-28 05:11:42 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-05-08 01:53:42 +0200
commit7fc2a5039f11da376076213ff9613a84e678fc55 (patch)
treec2f7d9ea09bb0eb6c00bcb9d04bc943a7de196f0 /src/com/cyanogenmod/trebuchet/LauncherModel.java
parent59b16ee37be235d175a04114af9de402f5d5dfec (diff)
downloadandroid_packages_apps_Trebuchet-7fc2a5039f11da376076213ff9613a84e678fc55.tar.gz
android_packages_apps_Trebuchet-7fc2a5039f11da376076213ff9613a84e678fc55.tar.bz2
android_packages_apps_Trebuchet-7fc2a5039f11da376076213ff9613a84e678fc55.zip
Trebuchet: Labels on dock items
Patchset 4: Discard item scale and use paddings to adjust the workspace Patchset 5: mHideDockIconLabels = false on vertical hotseat Patchset 6: Fixed FolderIcon typo Fixed inline style Remove Workspace injection on Launcher class Use isLargeScreen to show text in vertical hotseat Change-Id: I055817d30e95ea7f5beaa7e7bdb242c6e887d2fd JIRA: CYAN-523 Issue: https://jira.cyanogenmod.org/browse/CYAN-523 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/LauncherModel.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/LauncherModel.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/LauncherModel.java b/src/com/cyanogenmod/trebuchet/LauncherModel.java
index a3d198c7e..923842c5f 100644
--- a/src/com/cyanogenmod/trebuchet/LauncherModel.java
+++ b/src/com/cyanogenmod/trebuchet/LauncherModel.java
@@ -1354,6 +1354,16 @@ public class LauncherModel extends BroadcastReceiver {
iconPackageIndex, iconResourceIndex, iconIndex,
titleIndex);
info.itemType = LauncherSettings.Favorites.ITEM_TYPE_ALLAPPS;
+ if (info.title == null) {
+ info.title = mContext.getString(R.string.all_apps_button_label);
+ }
+ intentDescription = c.getString(intentIndex);
+ try {
+ intent = Intent.parseUri(intentDescription, 0);
+ } catch (Exception ex) {
+ intent = new Intent();
+ intent.setClassName(mContext.getPackageName(), Launcher.class.getName());
+ }
}
if (info != null) {