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,11 +34,9 @@ fun BrowserState.asRecentTabs(): List<RecentTab> {
|
||||
inProgressMediaTab?.let { add(RecentTab.Tab(it)) }
|
||||
}
|
||||
|
||||
if (FeatureFlags.tabGroupFeature) {
|
||||
lastSearchGroup?.let { add(it) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the selected normal tab or the last accessed normal tab
|
||||
|
@ -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,6 +78,7 @@ fun RecentTabs(
|
||||
)
|
||||
}
|
||||
is RecentTab.SearchGroup -> {
|
||||
if (FeatureFlags.tabGroupFeature) {
|
||||
RecentSearchGroupItem(
|
||||
searchTerm = tab.searchTerm,
|
||||
tabId = tab.tabId,
|
||||
@ -90,6 +92,7 @@ fun RecentTabs(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A recent tab item.
|
||||
|
Loading…
Reference in New Issue
Block a user