mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] Fix recent tabs intermittent tests (https://github.com/mozilla-mobile/fenix/pull/21557)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
dd24847b89
commit
f90fd65ccd
@ -9,7 +9,6 @@ import mozilla.components.browser.state.selector.selectedNormalTab
|
||||
import mozilla.components.browser.state.state.BrowserState
|
||||
import mozilla.components.browser.state.state.TabSessionState
|
||||
import mozilla.components.feature.tabs.ext.hasMediaPlayed
|
||||
import org.mozilla.fenix.FeatureFlags
|
||||
import org.mozilla.fenix.home.recenttabs.RecentTab
|
||||
import org.mozilla.fenix.tabstray.browser.TabGroup
|
||||
import org.mozilla.fenix.tabstray.browser.maxActiveTime
|
||||
@ -35,9 +34,7 @@ fun BrowserState.asRecentTabs(): List<RecentTab> {
|
||||
inProgressMediaTab?.let { add(RecentTab.Tab(it)) }
|
||||
}
|
||||
|
||||
if (FeatureFlags.tabGroupFeature) {
|
||||
lastSearchGroup?.let { add(it) }
|
||||
}
|
||||
lastSearchGroup?.let { add(it) }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,7 @@ import mozilla.components.browser.icons.compose.Placeholder
|
||||
import mozilla.components.browser.icons.compose.WithIcon
|
||||
import mozilla.components.support.ktx.kotlin.getRepresentativeSnippet
|
||||
import mozilla.components.ui.colors.PhotonColors
|
||||
import org.mozilla.fenix.FeatureFlags
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.components.components
|
||||
import org.mozilla.fenix.home.recenttabs.RecentTab
|
||||
@ -77,14 +78,16 @@ fun RecentTabs(
|
||||
)
|
||||
}
|
||||
is RecentTab.SearchGroup -> {
|
||||
RecentSearchGroupItem(
|
||||
searchTerm = tab.searchTerm,
|
||||
tabId = tab.tabId,
|
||||
url = tab.url,
|
||||
thumbnail = tab.thumbnail,
|
||||
count = tab.count,
|
||||
onSearchGroupClicked = onRecentSearchGroupClicked
|
||||
)
|
||||
if (FeatureFlags.tabGroupFeature) {
|
||||
RecentSearchGroupItem(
|
||||
searchTerm = tab.searchTerm,
|
||||
tabId = tab.tabId,
|
||||
url = tab.url,
|
||||
thumbnail = tab.thumbnail,
|
||||
count = tab.count,
|
||||
onSearchGroupClicked = onRecentSearchGroupClicked
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user