From 120f24101162c01240fae7da12f8c80067923981 Mon Sep 17 00:00:00 2001 From: Levin Li Date: Fri, 8 Apr 2022 18:19:10 +0800 Subject: [PATCH] Remove unused --- .../space/celestia/mobilecelestia/travel/GoToInputFragment.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/space/celestia/mobilecelestia/travel/GoToInputFragment.kt b/app/src/main/java/space/celestia/mobilecelestia/travel/GoToInputFragment.kt index d7fefac5..2d4fc2e5 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/travel/GoToInputFragment.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/travel/GoToInputFragment.kt @@ -88,7 +88,7 @@ class GoToInputFragment : NavigationFragment.SubFragment() { } }, chooseObjectCallback = { _ -> listener?.onEditGoToObject(goToData) - }, chooseUnitCallback = { current -> + }, chooseUnitCallback = { val ac = activity ?: return@GoToInputRecyclerViewAdapter ac.showOptions("", distanceUnits.map { value -> CelestiaString(value.name, "") }.toTypedArray(),) { newIndex -> val unit = distanceUnits[newIndex] @@ -97,7 +97,6 @@ class GoToInputFragment : NavigationFragment.SubFragment() { adapter?.reload() adapter?.notifyDataSetChanged() } - }, proceedCallback = { adapter?.let { listener?.onGoToObject(goToData)