void setStayPressed(boolean stayPressed) {
    mStayPressed = stayPressed;
    if (!stayPressed) {
      mPressedBackground = null;
    }

    // Only show the shadow effect when persistent pressed state is set.
    if (getParent() instanceof ShortcutAndWidgetContainer) {
      CellLayout layout = (CellLayout) getParent().getParent();
      layout.setPressedIcon(this, mPressedBackground, mOutlineHelper.shadowBitmapPadding);
    }

    updateIconState();
  }