wrong activity - back out

This commit is contained in:
sonora 2011-07-20 09:30:54 -07:00
parent d761318dc1
commit 1cd6b83cd8

View file

@ -49,8 +49,7 @@ public class NavigatePointActivity extends Activity {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
// use actual map location instead, statement seems useless: LatLon loc = OsmandSettings.getOsmandSettings(this).getLastKnownMapLocation(); LatLon loc = OsmandSettings.getOsmandSettings(this).getLastKnownMapLocation();
LatLon loc = activity.getMapLocation();
setContentView(R.layout.navigate_point); setContentView(R.layout.navigate_point);
setTitle(R.string.map_specify_point); setTitle(R.string.map_specify_point);
initUI(loc.getLatitude(), loc.getLongitude()); initUI(loc.getLatitude(), loc.getLongitude());