For #10466: Put call & email at top of context list
This commit is contained in:
parent
1261da0ec7
commit
98ad7ace49
|
@ -322,10 +322,12 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
|
|||
private fun actionSorter(actions: Array<String>): Array<String> {
|
||||
val order = hashMapOf<String, Int>()
|
||||
|
||||
order["org.mozilla.geckoview.COPY"] = 0
|
||||
order["CUSTOM_CONTEXT_MENU_SEARCH"] = 1
|
||||
order["org.mozilla.geckoview.SELECT_ALL"] = 2
|
||||
order["CUSTOM_CONTEXT_MENU_SHARE"] = 3
|
||||
order["CUSTOM_CONTEXT_MENU_EMAIL"] = 0
|
||||
order["CUSTOM_CONTEXT_MENU_CALL"] = 1
|
||||
order["org.mozilla.geckoview.COPY"] = 2
|
||||
order["CUSTOM_CONTEXT_MENU_SEARCH"] = 3
|
||||
order["org.mozilla.geckoview.SELECT_ALL"] = 4
|
||||
order["CUSTOM_CONTEXT_MENU_SHARE"] = 5
|
||||
|
||||
return actions.sortedBy { actionName ->
|
||||
// Sort the actions in our preferred order, putting "other" actions unsorted at the end
|
||||
|
|
Loading…
Reference in New Issue
Block a user