diff --git a/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt b/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt index 773927fb43..42dcdb322e 100644 --- a/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt +++ b/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt @@ -30,8 +30,7 @@ open class LibraryPageView( foregroundColor = context.getColorFromAttr(R.attr.primaryText), backgroundColor = context.getColorFromAttr(R.attr.foundation) ) - libraryItemsList.setItemViewCacheSize(0) - libraryItemsList.adapter?.notifyItemRangeChanged(0, libraryItemsList.childCount) + libraryItemsList.adapter?.notifyDataSetChanged() } protected fun setUiForSelectingMode( @@ -43,8 +42,7 @@ open class LibraryPageView( foregroundColor = ContextCompat.getColor(context, R.color.white_color), backgroundColor = context.getColorFromAttr(R.attr.accentHighContrast) ) - libraryItemsList.setItemViewCacheSize(0) - libraryItemsList.adapter?.notifyItemRangeChanged(0, libraryItemsList.childCount) + libraryItemsList.adapter?.notifyDataSetChanged() } private fun updateToolbar(title: String?, foregroundColor: Int, backgroundColor: Int) {