Created
September 10, 2022 08:28
-
-
Save hongbeomi/7c4c22ed8f097d6c0c5526f0f17356e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NestedAdapterWrapper { | |
@NonNull | |
private final StableIdStorage.StableIdLookup mStableIdLookup; | |
public long getItemId(int localPosition) { | |
long localItemId = adapter.getItemId(localPosition); | |
return mStableIdLookup.localToGlobal(localItemId); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment