Skip to content

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Oct 16, 2025

@dbrant dbrant added the WIP Work in progress label Oct 16, 2025
@dbrant dbrant added Ready for Review and removed WIP Work in progress labels Oct 17, 2025
Comment on lines +241 to +244
map.moveCamera(CameraUpdateFactory.newLatLngZoom(LatLng(latitude, longitude), zoom), object : MapLibreMap.CancelableCallback {
override fun onCancel() { }
override fun onFinish() { }
})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be simplified: map.moveCamera(CameraUpdateFactory.newLatLngZoom(LatLng(latitude, longitude), zoom))

private fun geoWithArticlesScreen(vararg params: Int): YearInReviewScreenData.GeoScreen {
// TODO: yir112
private fun geoWithArticlesScreen(): YearInReviewScreenData.GeoScreen? {
if (yearInReviewModel.largestClusterCountryName.isEmpty() || yearInReviewModel.largestClusterArticles.size < 2) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add 2 to YearInReviewViewModel as a constant value like: MIN_CLUSTER_ARTICLE = 2

var largestClusterLongitude = 0.0
var largestClusterCountryName = ""
val largestClusterArticles = mutableListOf<String>()
if (pagesWithCoordinates.size > 2) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these 2 be replaced by the same constant value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants