@Override protected void onPrepareDialog(int id, Dialog dialog) { switch (id) { case DIALOG_CREATE_SHORTCUT: mWaitingForResult = false; break; case DIALOG_RENAME_FOLDER: if (mFolderInfo != null) { EditText input = (EditText) dialog.findViewById(R.id.folder_name); final CharSequence text = mFolderInfo.title; input.setText(text); input.setSelection(0, text.length()); } break; } }
这里是2.1以前都有的BUG,2.2以后都可以了,估计被GOOGLE改掉了.
处理方式:增加mWaitingForResult = false;这行代码OK,
或者直接屏蔽掉ONLONGCLICKLISTENTER中的if (isWorkspaceLocked()) { Log.i("======Launcher========", "======isWorkspaceLocked()============"); return false; }
和WORKSAPCE中的DISPATCHACTION中的拦截判断.