You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had issue when remove Loading would remove a list item at index 0, my fix was to check for item type is indeed LOADING holder by checking in the if statement in the removeLoadingFooter() function using
&& getItemViewType(position) == LOADING
sorry code is in Kotlin as I am using Kotlin ..
fun removeLoadingFooter() {
isLoadingAdded = false
val position = loadingFooterLastPosition
val result = getItem(position)
if (result != null && getItemViewType(position) == LOADING) {
CamerasModel!!.removeAt(position)
notifyItemRemoved(position)
}
}
The text was updated successfully, but these errors were encountered:
I had issue when remove Loading would remove a list item at index 0, my fix was to check for item type is indeed LOADING holder by checking in the if statement in the removeLoadingFooter() function using
&& getItemViewType(position) == LOADING
sorry code is in Kotlin as I am using Kotlin ..
The text was updated successfully, but these errors were encountered: