fix more typos

This commit is contained in:
sonora 2015-01-02 18:35:44 +01:00
parent a1f1211dcf
commit a1413c7cd7
2 changed files with 2 additions and 2 deletions

View file

@ -512,7 +512,7 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
}
@Override
public void updateLocation(Location location) {
public void updateLocation(LatLon location) {
for (WeakReference<Fragment> ref : fragList) {
Fragment f = ref.get();
if (f instanceof DashFavoritesFragment && !f.isDetached()) {

View file

@ -69,7 +69,7 @@ public class DashFavoritesFragment extends DashBaseFragment {
if(!getMyApplication().getSettings().isLastKnownMapLocation()) {
// show first time when application ran
//location = getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation();
location = new LatLon(getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation().getLatitide(), getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation().getLongitude());
location = new LatLon(getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation().getLatitude(), getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation().getLongitude());
} else {
//location = getLocationProvider().getLastKnownLocation();
location = new LatLon(getLocationProvider().getLastKnownLocation().getLatitude(), getLocationProvider().getLastKnownLocation().getLongitude());