FooterAdapter.kt: changed enum access of FooterItem, from FooterItem.values to FooterItem.entries, this is the more efficient way of accessing Enum values as introduced in kotlin 1.9 (#6271)
Some checks failed
Android CI / Run tests and generate APK (push) Has been cancelled

Co-authored-by: bethel-m <bethelcletus87@gmail.com>
This commit is contained in:
Prinuel 2025-04-03 13:10:41 +01:00 committed by GitHub
parent 731ff62faf
commit 51da9e4dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ class FooterAdapter(
override fun onCreateViewHolder( override fun onCreateViewHolder(
parent: ViewGroup, parent: ViewGroup,
viewType: Int, viewType: Int,
) = when (FooterItem.values()[viewType]) { ) = when (FooterItem.entries[viewType]) {
FooterItem.LoadingItem -> FooterItem.LoadingItem ->
LoadingViewHolder( LoadingViewHolder(
parent.inflate(R.layout.list_item_progress), parent.inflate(R.layout.list_item_progress),