mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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
This commit is contained in:
parent
fdfd7781e9
commit
9921720dc9
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