public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: // if (getAnimation() != null) { // ItemInfo info = (ItemInfo) getTag(); // if (info.container > 0) { // // this view is in a folder. // Folder folder = mLauncher.getOpenIphoneFolder(); // if (folder != null) { // folder.startDrag(this); // return true; // } // } else { // CellLayout.CellInfo cellInfo = (CellLayout.CellInfo) ((View) // getParent()) // .getTag(); // if (cellInfo == null) { // Log.d(TAG, "cellinfo is null"); // return true; // } // final View parent = (View) getParent().getParent(); // if (parent instanceof Workspace) { // ((Workspace) parent).startDrag(cellInfo); // return true; // } // } // } mContent.setIphonePressed(true); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: mContent.setIphonePressed(false); break; default: break; } return super.onTouchEvent(event); }