Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Bug 1812712 - implement open in background in bookmark manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoossayn committed Mar 22, 2024
1 parent 530e2be commit 33ddcdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ class DefaultBookmarkController(
)
}

override fun handleOpeningBookmark(item: BookmarkNode, mode: BrowsingMode, openInBackground: Boolean) {
override fun handleOpeningBookmark(
item: BookmarkNode,
mode: BrowsingMode,
openInBackground: Boolean,
) {
openInNewTab(item.url!!, mode)
showSnackbar(resources.getString(R.string.bookmark_opened_in_background))
if (!openInBackground)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class BookmarkFragmentInteractor(
METRIC_SOURCE,
)
}

override fun onOpenInPrivateTab(item: BookmarkNode) {
require(item.type == BookmarkNodeType.ITEM)
item.url?.let {
Expand Down

0 comments on commit 33ddcdd

Please sign in to comment.