Skip to content

Instantly share code, notes, and snippets.

@hongbeomi
Created September 10, 2022 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hongbeomi/a440f1ea86493f2acedf2384d53f0a09 to your computer and use it in GitHub Desktop.
Save hongbeomi/a440f1ea86493f2acedf2384d53f0a09 to your computer and use it in GitHub Desktop.
class ConcatAdapterController implements NestedAdapterWrapper.Callback {
..
public long getItemId(int globalPosition) {
WrapperAndLocalPosition wrapperAndPos = findWrapperAndLocalPosition(globalPosition);
Long globalItemId = wrapperAndPos.mWrapper.getItemId(wrapperAndPos.mLocalPosition);
releaseWrapperAndLocalPosition(wrapperAndPos);
return globalItemId;
}
..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment