Migrated nearby parent fragment file to kotlin (#6177)

* Rename .java to .kt

* Migrated

* Migrated

* Migrated
This commit is contained in:
Sujal 2025-02-12 13:21:22 +05:30 committed by Nicolas Raoul
parent 562998d602
commit 969f491a81
3 changed files with 2667 additions and 2473 deletions

View file

@ -28,6 +28,7 @@ import fr.free.nrw.commons.navtab.NavTabLayout
import fr.free.nrw.commons.navtab.NavTabLoggedOut import fr.free.nrw.commons.navtab.NavTabLoggedOut
import fr.free.nrw.commons.nearby.Place import fr.free.nrw.commons.nearby.Place
import fr.free.nrw.commons.nearby.fragments.NearbyParentFragment 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.NotificationActivity.Companion.startYourself
import fr.free.nrw.commons.notification.NotificationController import fr.free.nrw.commons.notification.NotificationController
import fr.free.nrw.commons.quiz.QuizChecker import fr.free.nrw.commons.quiz.QuizChecker
@ -460,11 +461,12 @@ after opening the app.
fun centerMapToPlace(place: Place?) { fun centerMapToPlace(place: Place?) {
setSelectedItemId(NavTab.NEARBY.code()) setSelectedItemId(NavTab.NEARBY.code())
nearbyParentFragment!!.setNearbyParentFragmentInstanceReadyCallback { nearbyParentFragment!!.setNearbyParentFragmentInstanceReadyCallback(
nearbyParentFragment!!.centerMapToPlace( object : NearbyParentFragmentInstanceReadyCallback {
place override fun onReady() {
) nearbyParentFragment!!.centerMapToPlace(place)
} }
})
} }
/** /**

File diff suppressed because it is too large Load diff