2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-09 19:10:42 +00:00

For #14302 - Skip one time pages visit from frecent top sites

This commit is contained in:
Gabriel Luong 2020-10-14 11:19:35 -04:00 committed by Christian Sadilek
parent 84aae93af2
commit 171c466ada

View File

@ -69,6 +69,7 @@ import mozilla.components.browser.state.selector.privateTabs
import mozilla.components.browser.state.state.BrowserState import mozilla.components.browser.state.state.BrowserState
import mozilla.components.browser.state.state.selectedOrDefaultSearchEngine import mozilla.components.browser.state.state.selectedOrDefaultSearchEngine
import mozilla.components.browser.state.store.BrowserStore import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.concept.storage.FrecencyThresholdOption
import mozilla.components.concept.sync.AccountObserver import mozilla.components.concept.sync.AccountObserver
import mozilla.components.concept.sync.AuthType import mozilla.components.concept.sync.AuthType
import mozilla.components.concept.sync.OAuthAccount import mozilla.components.concept.sync.OAuthAccount
@ -274,7 +275,10 @@ class HomeFragment : Fragment() {
*/ */
private fun getTopSitesConfig(): TopSitesConfig { private fun getTopSitesConfig(): TopSitesConfig {
val settings = requireContext().settings() val settings = requireContext().settings()
return TopSitesConfig(settings.topSitesMaxLimit, settings.showTopFrecentSites) return TopSitesConfig(
settings.topSitesMaxLimit,
FrecencyThresholdOption.SKIP_ONE_TIME_PAGES
)
} }
/** /**