@Override public void onLongClick(PieItem item) { String type = (String) item.longTag; if (!Action.isActionKeyEvent(type)) { mPieContainer.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); } mPieContainer.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED); Action.processAction(mContext, type, true); }
@Override public void onClick(PieItem item) { String type = (String) item.tag; if (!Action.isActionKeyEvent(type)) { mPieContainer.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY); } if (!type.equals(ActionConstants.ACTION_MENU)) { mPieContainer.playSoundEffect(SoundEffectConstants.CLICK); } mPieContainer.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED); Action.processAction(mContext, type, false); }