mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Migrated nearby parent fragment file to kotlin (#6177)
* Rename .java to .kt * Migrated * Migrated * Migrated
This commit is contained in:
parent
a529ba8032
commit
6345fef6bf
3 changed files with 2667 additions and 2473 deletions
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue