Skip to content

Commit

Permalink
Add default zoom level if center map from gps location in IgnorePoint…
Browse files Browse the repository at this point in the history
…s activity
  • Loading branch information
sylwke3100 committed May 28, 2016
1 parent d88a6a2 commit af33b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/com/sylwke3100/freetrackgps/DefaultValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public final class DefaultValues {
public static String defaultDatabaseName = "workout";
public static String defaultFolderWithWorkout = "/workout/";
public static String defaultFileFormat = "gpx";
public static int defaultZoomLevel = 15;
public static enum routeStatus {
stop,
pause,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
sharedLocation.getCurrentLocation();
mMapView.getController()
.setCenter(new GeoPoint(location.latitude, location.longitude));
mMapView.getController().setZoom(DefaultValues.defaultZoomLevel);
mMapView.invalidate();
break;
case R.id.action_ignorepoints_add_done:
Expand Down

0 comments on commit af33b3f

Please sign in to comment.