@@ -65,12 +65,12 @@ boolean isDisplayLoadingRow() {
 
     void displayLoadingRow(boolean displayLoadingRow) {
         if (this.displayLoadingRow != displayLoadingRow) {
+            this.displayLoadingRow = displayLoadingRow;
             if(displayLoadingRow){
                 notifyItemInserted(wrappedAdapter.getItemCount());
             }else{
                 notifyItemRemoved(wrappedAdapter.getItemCount());
             }
-            this.displayLoadingRow = displayLoadingRow;
         }
     }
 