mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/2570: Hide 3-dots menu for all library items when in select mode. (https://github.com/mozilla-mobile/fenix/pull/6736)
notifyDataSetChanged to avoid not displayed but created items not being redrawn
This commit is contained in:
parent
d4557d5a67
commit
132c68b597
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user