File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/com/duckduckgo/app/tabs/ui Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,9 +227,9 @@ class TabSwitcherViewModel @Inject constructor(
227
227
}
228
228
}
229
229
230
- fun onTrackerAnimationTileCloseClicked () {
230
+ fun onTrackerAnimationTileCloseClicked (isDismissed : Boolean = true ) {
231
231
viewModelScope.launch(dispatcherProvider.io()) {
232
- tabSwitcherPrefsDataStore.setIsAnimationTileDismissed(isDismissed = true )
232
+ tabSwitcherPrefsDataStore.setIsAnimationTileDismissed(isDismissed = isDismissed )
233
233
}
234
234
}
235
235
@@ -250,7 +250,7 @@ class TabSwitcherViewModel @Inject constructor(
250
250
val tabItems = tabEntities.map { Tab (it) }
251
251
val trackerCount = getTrackerCountForLast7Days()
252
252
253
- val tabSwitcherItems = if (! isDismissed && trackerCount >= 10 ) {
253
+ val tabSwitcherItems = if (! isDismissed && trackerCount >= 10 && tabEntities.count() >= 2 ) {
254
254
listOf (TrackerAnimationTile (trackerCount)) + tabItems
255
255
} else {
256
256
tabItems
You can’t perform that action at this time.
0 commit comments