From 50052c9b9bee6c15a6517eed75834f78b945ea5c Mon Sep 17 00:00:00 2001 From: Colin Lee Date: Mon, 1 Jul 2019 16:31:30 -0500 Subject: [PATCH] For #3551: Tapping a bookmark/history from Library should open new tab (#3832) --- .../org/mozilla/fenix/library/bookmarks/BookmarkFragment.kt | 2 +- .../java/org/mozilla/fenix/library/history/HistoryFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkFragment.kt b/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkFragment.kt index 90fdb2f172c8..8d31955e1eb0 100644 --- a/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkFragment.kt @@ -181,7 +181,7 @@ class BookmarkFragment : Fragment(), BackHandler, AccountObserver { (activity as HomeActivity) .openToBrowserAndLoad( searchTermOrURL = url, - newTab = false, + newTab = true, from = BrowserDirection.FromBookmarks ) } diff --git a/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt b/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt index 0583890ef7c1..776c2a06be2c 100644 --- a/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/library/history/HistoryFragment.kt @@ -211,7 +211,7 @@ class HistoryFragment : Fragment(), BackHandler { private fun openItem(item: HistoryItem) { (activity as HomeActivity).openToBrowserAndLoad( searchTermOrURL = item.url, - newTab = false, + newTab = true, from = BrowserDirection.FromHistory ) }