mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
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
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:
parent
731ff62faf
commit
51da9e4dd6
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ class FooterAdapter(
|
|||
override fun onCreateViewHolder(
|
||||
parent: ViewGroup,
|
||||
viewType: Int,
|
||||
) = when (FooterItem.values()[viewType]) {
|
||||
) = when (FooterItem.entries[viewType]) {
|
||||
FooterItem.LoadingItem ->
|
||||
LoadingViewHolder(
|
||||
parent.inflate(R.layout.list_item_progress),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue