File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
WordPress/src/main/java/org/wordpress/android/ui/postsrs Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import org.wordpress.android.ui.mysite.SelectedSiteRepository
2626import org.wordpress.android.ui.postsrs.data.PostRsRestClient
2727import org.wordpress.android.util.DateTimeUtilsWrapper
2828import org.wordpress.android.viewmodel.ResourceProvider
29+ import java.util.concurrent.ConcurrentHashMap
2930import javax.inject.Inject
3031import javax.inject.Named
3132
@@ -79,7 +80,7 @@ class PostRsListViewModel @Inject constructor(
7980 private var tabSelectionJob: Job ? = null
8081
8182 // Track loaded post count per tab for offset pagination
82- private val loadedCounts = mutableMapOf <PostRsListTab , Int >()
83+ private val loadedCounts = ConcurrentHashMap <PostRsListTab , Int >()
8384
8485 fun tabState (tab : PostRsListTab ): StateFlow <PostTabUiState > =
8586 tabStates.getValue(tab).asStateFlow()
You can’t perform that action at this time.
0 commit comments