Remove update routine to check result

This commit is contained in:
sonora 2015-01-02 18:52:04 +01:00
parent 936391acc8
commit 7eed54e2ab

View file

@ -512,15 +512,16 @@ public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca
}
}
@Override
public void updateLocation(LatLon location) {
for (WeakReference<Fragment> ref : fragList) {
Fragment f = ref.get();
if (f instanceof DashFavoritesFragment && !f.isDetached()) {
((DashFavoritesFragment) f).updateLocation(location);
}
}
}
//Remove for now to check error
//@Override
//public void updateLocation(LatLon location) {
// for (WeakReference<Fragment> ref : fragList) {
// Fragment f = ref.get();
// if (f instanceof DashFavoritesFragment && !f.isDetached()) {
// ((DashFavoritesFragment) f).updateLocation(location);
// }
// }
//}
private OsmAndLocationProvider getLocationProvider() {
return getMyApplication().getLocationProvider();