Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #25810 - Unified search should give hint to user that there are m…
Browse files Browse the repository at this point in the history
…ore menu items available by scrolling
  • Loading branch information
t-p-white committed Dec 20, 2022
1 parent 4e52da0 commit 3a05dde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class HomeFragment : Fragment() {
}

UnifiedSearch.searchMenuTapped.record(NoExtras())
searchSelectorMenu.menuController.show(anchor = it, orientation = orientation, forceOrientation = true)
searchSelectorMenu.menuController.show(anchor = it, orientation = orientation)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SearchSelectorToolbarAction(
}

UnifiedSearch.searchMenuTapped.record(NoExtras())
menu.menuController.show(anchor = it, orientation = orientation, forceOrientation = true)
menu.menuController.show(anchor = it, orientation = orientation)
}

val topPadding = resources.getDimensionPixelSize(R.dimen.search_engine_engine_icon_top_margin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ class SearchSelectorToolbarActionTest {

assertNotNull(UnifiedSearch.searchMenuTapped.testGetValue())
verify {
menu.menuController.show(view, Orientation.DOWN, true)
menu.menuController.show(view, Orientation.DOWN)
}

every { settings.shouldUseBottomToolbar } returns true
view.performClick()

assertNotNull(UnifiedSearch.searchMenuTapped.testGetValue())
verify {
menu.menuController.show(view, Orientation.UP, true)
menu.menuController.show(view, Orientation.UP)
}
}

Expand Down

0 comments on commit 3a05dde

Please sign in to comment.