kopia lustrzana https://github.com/ge0rg/aprsdroid
Map: fix coordinate chooser display and saving
rodzic
106edf8b90
commit
11d1e63299
|
|
@ -52,7 +52,9 @@ class MapAct extends MapActivity with MapMenuHelper {
|
||||||
override def onResume() {
|
override def onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
// only make it default if not tracking
|
// only make it default if not tracking
|
||||||
if (targetcall == "")
|
if (isCoordinateChooser)
|
||||||
|
setTitle(R.string.p_source_from_map)
|
||||||
|
else if (targetcall == "")
|
||||||
makeLaunchActivity("map")
|
makeLaunchActivity("map")
|
||||||
else
|
else
|
||||||
setLongTitle(R.string.app_map, targetcall)
|
setLongTitle(R.string.app_map, targetcall)
|
||||||
|
|
@ -164,6 +166,7 @@ class MapAct extends MapActivity with MapMenuHelper {
|
||||||
KeyEvent.KEYCODE_ENTER =>
|
KeyEvent.KEYCODE_ENTER =>
|
||||||
// TODO: return coordinates
|
// TODO: return coordinates
|
||||||
if (isCoordinateChooser) {
|
if (isCoordinateChooser) {
|
||||||
|
setResult(android.app.Activity.RESULT_OK, resultIntent)
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue