Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #14302 - Skip one time pages visit from frecent top sites
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielluong committed Jan 26, 2021
1 parent 39f7977 commit 3b8256b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import mozilla.components.browser.state.selector.privateTabs
import mozilla.components.browser.state.state.BrowserState
import mozilla.components.browser.state.state.selectedOrDefaultSearchEngine
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.concept.storage.FrecencyThresholdOption
import mozilla.components.concept.sync.AccountObserver
import mozilla.components.concept.sync.AuthType
import mozilla.components.concept.sync.OAuthAccount
Expand Down Expand Up @@ -278,7 +279,10 @@ class HomeFragment : Fragment() {
*/
private fun getTopSitesConfig(): TopSitesConfig {
val settings = requireContext().settings()
return TopSitesConfig(settings.topSitesMaxLimit, settings.showTopFrecentSites)
return TopSitesConfig(
settings.topSitesMaxLimit,
FrecencyThresholdOption.SKIP_ONE_TIME_PAGES
)
}

/**
Expand Down

0 comments on commit 3b8256b

Please sign in to comment.