Trim widget names

Bug: 8617506
This commit is contained in:
Michael Jurka
2013-04-18 16:57:58 +02:00
parent 02d1863c59
commit 74f0537577
@@ -448,6 +448,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);