For #23408: Fix pinned top sites count from the cached list.
This commit is contained in:
parent
7a8711247d
commit
9a5cd634ab
|
@ -251,7 +251,7 @@ class DefaultBrowserToolbarMenuController(
|
|||
scope.launch {
|
||||
val context = swipeRefresh.context
|
||||
val numPinnedSites = topSitesStorage.cachedTopSites
|
||||
.filter { it !is TopSite.Frecent || it !is TopSite.Provided }.size
|
||||
.filter { it is TopSite.Default || it is TopSite.Pinned }.size
|
||||
|
||||
if (numPinnedSites >= settings.topSitesMaxLimit) {
|
||||
AlertDialog.Builder(swipeRefresh.context).apply {
|
||||
|
|
Loading…
Reference in New Issue
Block a user