Skip to content

Commit

Permalink
Migrated nearby parent fragment file to kotlin (#6177)
Browse files Browse the repository at this point in the history
* Rename .java to .kt

* Migrated

* Migrated

* Migrated
  • Loading branch information
Sujal-Gupta-SG authored and nicolas-raoul committed Feb 13, 2025
1 parent 562998d commit 969f491
Show file tree
Hide file tree
Showing 3 changed files with 2,667 additions and 2,473 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import fr.free.nrw.commons.navtab.NavTabLayout
import fr.free.nrw.commons.navtab.NavTabLoggedOut
import fr.free.nrw.commons.nearby.Place
import fr.free.nrw.commons.nearby.fragments.NearbyParentFragment
import fr.free.nrw.commons.nearby.fragments.NearbyParentFragment.NearbyParentFragmentInstanceReadyCallback
import fr.free.nrw.commons.notification.NotificationActivity.Companion.startYourself
import fr.free.nrw.commons.notification.NotificationController
import fr.free.nrw.commons.quiz.QuizChecker
Expand Down Expand Up @@ -460,11 +461,12 @@ after opening the app.

fun centerMapToPlace(place: Place?) {
setSelectedItemId(NavTab.NEARBY.code())
nearbyParentFragment!!.setNearbyParentFragmentInstanceReadyCallback {
nearbyParentFragment!!.centerMapToPlace(
place
)
}
nearbyParentFragment!!.setNearbyParentFragmentInstanceReadyCallback(
object : NearbyParentFragmentInstanceReadyCallback {
override fun onReady() {
nearbyParentFragment!!.centerMapToPlace(place)
}
})
}

/**
Expand Down
Loading

0 comments on commit 969f491

Please sign in to comment.