From 74f053757701bcb897fb2ec11f8e2aa2d11491e6 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Thu, 18 Apr 2013 16:57:58 +0200 Subject: [PATCH] Trim widget names Bug: 8617506 --- src/com/android/launcher2/AppsCustomizePagedView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index a4a9ea9dad..5601169b82 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -448,6 +448,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen Intent shortcutsIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT); List 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);