Default

A default comparator for CallUI.Buttons.

This comparator sorts buttons based on a predefined order specified by the all list. Buttons appearing earlier in the all list will be considered "less than" buttons appearing later in the list. If a button is not found in the all list, its behavior in the comparison will be based on indexOf returning -1, potentially leading to it being sorted towards the beginning or end depending on the other button's position.

Functions

Link copied to clipboard
open override fun compare(button1: CallUI.Button?, button2: CallUI.Button?): Int
Link copied to clipboard