summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-04-18 16:57:58 +0200
committerArne Coucheron <arco68@gmail.com>2013-08-12 16:57:36 +0200
commitbbd454dc5e11744bff15314daded23b0cdacdef1 (patch)
tree31838c422a086d76baf3f49c50de4c357dba4095 /src
parent89591fc2080c6da58ca91e12d9ec118eeace8a32 (diff)
downloadandroid_packages_apps_Trebuchet-bbd454dc5e11744bff15314daded23b0cdacdef1.tar.gz
android_packages_apps_Trebuchet-bbd454dc5e11744bff15314daded23b0cdacdef1.tar.bz2
android_packages_apps_Trebuchet-bbd454dc5e11744bff15314daded23b0cdacdef1.zip
Trim widget names
Bug: 8617506 Change-Id: I2f7137b4b5255820af1fb2437caf3da0c163fff7
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index 56e3785d5..57f76092f 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -657,6 +657,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
Intent shortcutsIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
List<ResolveInfo> shortcuts = mPackageManager.queryIntentActivities(shortcutsIntent, 0);
for (AppWidgetProviderInfo widget : widgets) {
+ widget.label = widget.label.trim();
if (widget.minWidth > 0 && widget.minHeight > 0) {
// Ensure that all widgets we show can be added on a workspace of this size
int[] spanXY = Launcher.getSpanForWidget(mLauncher, widget);