Object (int x) { if (myHaveLink) { Object linkTag = myLink.getFragmentTagAt(x - myLinkOffset); if (linkTag != null) { return linkTag; } } Object baseFragment = super.getFragmentTagAt(x); if (baseFragment != null) { return baseFragment; } if (myIconTag != null && findFragmentAt(x) == FRAGMENT_ICON) { return myIconTag; } return null; }