@@ -14,7 +14,7 @@ public abstract class SectionAdapter extends RecyclerView.Adapter<RecyclerView.V
1414 boolean isError = false ;
1515
1616 @ Override
17- public void onBindViewHolder (RecyclerView .ViewHolder holder , int position , List <Object > payloads ) {
17+ final public void onBindViewHolder (RecyclerView .ViewHolder holder , int position , List <Object > payloads ) {
1818 if (getLoadingResultsLayout () != null && getItemViewType (position ) == getLoadingResultsLayout ()) {
1919 onBindLoadingView (holder );
2020 } else if (getErrorResultsLayout () != null && getItemViewType (position ) == getErrorResultsLayout ()) {
@@ -27,7 +27,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position, List<
2727 }
2828
2929 @ Override
30- public int getItemViewType (int position ) {
30+ final public int getItemViewType (int position ) {
3131 if (getLoadingResultsLayout () != null && isLoading && position >= getDataCount ()) {
3232 return getLoadingResultsLayout ();
3333 }
@@ -44,7 +44,7 @@ public int getItemViewType(int position) {
4444 }
4545
4646 @ Override
47- public long getItemId (int position ) {
47+ final public long getItemId (int position ) {
4848 if (getLoadingResultsLayout () != null && getItemViewType (position ) == getLoadingResultsLayout ()) {
4949 return getLoadingResultsLayout ();
5050 }
@@ -61,7 +61,7 @@ public long getItemId(int position) {
6161 }
6262
6363 @ Override
64- public int getItemCount () {
64+ final public int getItemCount () {
6565 int itemCount = getDataCount ();
6666
6767 if (isLoading && getLoadingResultsLayout () != null ) {
@@ -80,7 +80,7 @@ public int getItemCount() {
8080 }
8181
8282 @ Override
83- public void onBindViewHolder (RecyclerView .ViewHolder holder , int position ) {
83+ final public void onBindViewHolder (RecyclerView .ViewHolder holder , int position ) {
8484 if (getLoadingResultsLayout () != null && getItemViewType (position ) == getLoadingResultsLayout ()) {
8585 onBindLoadingView (holder );
8686 } else if (getErrorResultsLayout () != null && getItemViewType (position ) == getErrorResultsLayout ()) {
@@ -93,7 +93,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
9393 }
9494
9595 @ Override
96- public RecyclerView .ViewHolder onCreateViewHolder (ViewGroup parent , int viewType ) {
96+ final public RecyclerView .ViewHolder onCreateViewHolder (ViewGroup parent , int viewType ) {
9797 if (getLoadingResultsLayout () != null && viewType == getLoadingResultsLayout ()) {
9898 return onCreateLoadingResultsViewHolder (parent , viewType );
9999 }
0 commit comments