fix sorting of items in bottom action view
This commit is contained in:
parent
7f7780f678
commit
f7d5c704f6
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class BottomActionMenuView : LinearLayout {
|
|||
private val inflater = LayoutInflater.from(context)
|
||||
private val itemsLookup = LinkedHashMap<Int, BottomActionMenuItem>()
|
||||
private val items: List<BottomActionMenuItem>
|
||||
get() = itemsLookup.values.toList().sortedWith(compareBy<BottomActionMenuItem> { it.showAsAction }.thenBy { it.icon == View.NO_ID }).filter { it.isVisible }
|
||||
get() = itemsLookup.values.toList().sortedWith(compareByDescending<BottomActionMenuItem> { it.showAsAction }.thenBy { it.icon != View.NO_ID }).filter { it.isVisible }
|
||||
private var currentAnimator: ViewPropertyAnimator? = null
|
||||
private var callback: BottomActionMenuCallback? = null
|
||||
|
||||
|
|
Loading…
Reference in a new issue