git-svn-id: https://osmand.googlecode.com/svn/trunk@418 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-07-30 21:22:13 +00:00
parent 605e513436
commit 54a8294e52
4 changed files with 13 additions and 9 deletions

View file

@ -12,17 +12,17 @@ public class ToDoConstants {
// 80. Export/import favorite points
// 81. Add some objects to POI category (1) to add them into OSM 2) to help navigation)
// highway (?), traffic_calming (?), barrier(?), military(?-), landuse (?), office(?), man_made(?), power(?).
// 84. Send letter to developer when app crashes
// TODO BUGS Android
// 2. GPS - network switch
// 3. different screens better support
// 5. route bug show further
// 2. GPS - network switch (+?)
// 5. route bug show further (+)
// 4. save state yandex traffic (+)
// 1. Alert no addresses (+)
// Improvements
// Improvements
// ! Download with wget
// ! progress while map is loading
@ -38,7 +38,6 @@ public class ToDoConstants {
// 40. Support simple vector road rendering (require new index file) (?)
// 63. Support simple offline routing(require new index file) (?)
// TODO swing
// 9. Fix issues with big files (such as netherlands) - save memory (!) - very slow due to transport index !
@ -49,6 +48,7 @@ public class ToDoConstants {
// BUGS Swing
// DONE ANDROID :
// 84. Send letter to developer when app crashes
// 78. Add ruler to the main tile view (100m, 200m,...) (+)
// 82. Add overzoom +2 for Mapnik
// 64. Traffic information - yandex traffic

View file

@ -92,7 +92,7 @@ public class MainMenuActivity extends Activity {
long size = getPreferences(MODE_WORLD_READABLE).getLong(EXCEPTION_FILE_SIZE, 0);
final File file = new File(Environment.getExternalStorageDirectory(), EXCEPTION_PATH);
if(file.exists() && file.length() > 0){
// if(size != file.length()){
if(size != file.length()){
String msg = MessageFormat.format(getString(R.string.previous_run_crashed),
EXCEPTION_PATH);
Builder builder = new AlertDialog.Builder(MainMenuActivity.this);
@ -119,7 +119,7 @@ public class MainMenuActivity extends Activity {
});
builder.show();
getPreferences(MODE_WORLD_READABLE).edit().putLong(EXCEPTION_FILE_SIZE, file.length()).commit();
// }
}
} else {
if(size > 0){

View file

@ -549,7 +549,9 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
@Override
public void onLocationChanged(Location location) {
// double check about use only gps
if(!useOnlyGPS()){
// that strange situation but it could happen?
if(!Algoritms.objectEquals(currentLocationProvider, LocationManager.GPS_PROVIDER) &&
!useOnlyGPS()){
setLocation(location);
}
}

View file

@ -78,7 +78,9 @@ public class RouteLayer implements OsmandMapLayer {
double leftLongitude = MapUtils.getLongitudeFromTile(view.getZoom(), tileRect.left);
double bottomLatitude = MapUtils.getLatitudeFromTile(view.getZoom(), tileRect.bottom);
double rightLongitude = MapUtils.getLongitudeFromTile(view.getZoom(), tileRect.right);
helper.fillLocationsToShow(topLatitude, leftLongitude, bottomLatitude, rightLongitude, points);
double lat = topLatitude - bottomLatitude + 0.1;
double lon = rightLongitude - leftLongitude + 0.1;
helper.fillLocationsToShow(topLatitude +lat, leftLongitude - lon, bottomLatitude - lat, rightLongitude + lon, points);
if((System.currentTimeMillis() - time) > 80){
Log.e(LogUtil.TAG, "Calculate route layer " + (System.currentTimeMillis() - time)); //$NON-NLS-1$
}