Add the ability to re-order sticker packs.

This commit is contained in:
Greyson Parrelli
2020-01-21 12:34:58 -05:00
parent 7d70ea78cd
commit f7a3bb2ae8
13 changed files with 211 additions and 8 deletions

View File

@@ -127,6 +127,10 @@ public abstract class SectionedRecyclerViewAdapter<IdType, SectionImpl extends S
return localPosition >= 0 && localPosition < size();
}
public boolean isContent(int globalPosition) {
return handles(globalPosition) && getViewType(globalPosition) == TYPE_CONTENT;
}
public final int size() {
if (getContentSize() == 0 && hasEmptyState()) {
return 2;