-
public final class VideoGridPagerDiffUtil extends DiffUtil.Callback
-
-
Constructor Summary
Constructors Constructor Description VideoGridPagerDiffUtil(Integer oldPageCount, Integer newPageCount)
-
Method Summary
Modifier and Type Method Description IntegergetOldListSize()IntegergetNewListSize()BooleanareItemsTheSame(Integer oldItemPosition, Integer newItemPosition)BooleanareContentsTheSame(Integer oldItemPosition, Integer newItemPosition)We rely on the observers in VideoGridPageFragment to update the content. -
-
Method Detail
-
getOldListSize
Integer getOldListSize()
-
getNewListSize
Integer getNewListSize()
-
areItemsTheSame
Boolean areItemsTheSame(Integer oldItemPosition, Integer newItemPosition)
-
areContentsTheSame
Boolean areContentsTheSame(Integer oldItemPosition, Integer newItemPosition)
We rely on the observers in VideoGridPageFragment to update the content. Hence, even if the content is not same, we know that the observers will handle the changes in tracks
-
-
-
-