From 11d1e632999fa905ad32470889a769d9fcbd304e Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 8 Feb 2022 19:08:17 +0100 Subject: [PATCH] Map: fix coordinate chooser display and saving --- src/MapAct.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MapAct.scala b/src/MapAct.scala index 6fb9382..5cbdcad 100644 --- a/src/MapAct.scala +++ b/src/MapAct.scala @@ -52,7 +52,9 @@ class MapAct extends MapActivity with MapMenuHelper { override def onResume() { super.onResume() // only make it default if not tracking - if (targetcall == "") + if (isCoordinateChooser) + setTitle(R.string.p_source_from_map) + else if (targetcall == "") makeLaunchActivity("map") else setLongTitle(R.string.app_map, targetcall) @@ -164,6 +166,7 @@ class MapAct extends MapActivity with MapMenuHelper { KeyEvent.KEYCODE_ENTER => // TODO: return coordinates if (isCoordinateChooser) { + setResult(android.app.Activity.RESULT_OK, resultIntent) finish() } true