예제 #1
0
  public void onDragExit(DragObject d) {
    super.onDragExit(d);

    if (!d.dragComplete) {
      // mDrawable.resetTransition();
      setTextColor(mOriginalTextColor);
    }
  }
예제 #2
0
  public void onDragExit(DragObject d) {
    super.onDragExit(d);

    mHandler.removeCallbacks(mShowUninstaller);

    if (!d.dragComplete) {
      mMode = MODE_DELETE;

      if (getText().length() > 0) {
        if (isAllAppsItem(d.dragSource, d.dragInfo)) {
          setText(R.string.cancel_target_label);
        } else {
          setText(R.string.delete_target_label);
        }
      }

      setCompoundDrawablesWithIntrinsicBounds(mRemoveNormalDrawable, null, null, null);
      mCurrentDrawable = getCompoundDrawables()[0];
      setTextColor(mOriginalTextColor);
    }
  }