android 添加桌面窗口小部件(托至桌面需要点击按钮才能生成的)

diff --git a/packages/apps/Launcher2/src/com/android/launcher2/AppsCustomizePagedView.java b/packages/apps/Launcher2/src/com/android/launcher
index 13c9dc9..f34914e 100644
--- a/packages/apps/Launcher2/src/com/android/launcher2/AppsCustomizePagedView.java
+++ b/packages/apps/Launcher2/src/com/android/launcher2/AppsCustomizePagedView.java
@@ -536,6 +536,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
                 int[] minSpanXY = Launcher.getMinSpanForWidget(mLauncher, widget);
                 int minSpanX = Math.min(spanXY[0], minSpanXY[0]);
                 int minSpanY = Math.min(spanXY[1], minSpanXY[1]);
+//                Log.e("TAG",widget.provider.getPackageName()+"+"+widget.provider.getClassName());               
                 if (minSpanX <= LauncherModel.getCellCountX() &&
 //                        minSpanY <= LauncherModel.getCellCountY()) {

                         minSpanY <= LauncherModel.getCellCountY() &&


打印信息很重要

你可能感兴趣的:(android 添加桌面窗口小部件(托至桌面需要点击按钮才能生成的))