1
0
Fork 0

For #10466: Add search privately to top of list (#12744)

master
Sawyer Blatz 2020-07-20 13:25:36 -07:00 committed by GitHub
parent 51937e73fc
commit 445593b719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -330,8 +330,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
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
order["CUSTOM_CONTEXT_MENU_SEARCH_PRIVATELY"] = 4
order["org.mozilla.geckoview.SELECT_ALL"] = 5
order["CUSTOM_CONTEXT_MENU_SHARE"] = 6
return actions.sortedBy { actionName ->
// Sort the actions in our preferred order, putting "other" actions unsorted at the end