Skip to content

Commit

Permalink
Auto whitespace formatting for Amazon classes
Browse files Browse the repository at this point in the history
  • Loading branch information
barbeau committed Nov 25, 2015
1 parent 88007bb commit b405ef7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ public class BaseMapFragment extends SupportMapFragment

// Keep track of current map padding
private int mMapPaddingLeft = 0;

private int mMapPaddingTop = 0;

private int mMapPaddingRight = 0;

private int mMapPaddingBottom = 0;

// Use fully-qualified class name to avoid import statement, because it interferes with scripted
Expand Down Expand Up @@ -770,11 +773,13 @@ public void zoomToRoute() {
* Zoom to include the current map bounds plus the location of the nearest vehicle
*
* @param routeIds markers representing real-time positions for the provided routeIds will be
* checked for proximity to the location (all other routes are ignored)
* @param response trips-for-route API response, which includes real-time vehicle locations in status
* checked for proximity to the location (all other routes are ignored)
* @param response trips-for-route API response, which includes real-time vehicle locations in
* status
*/
@Override
public void zoomIncludeClosestVehicle(HashSet<String> routeIds, ObaTripsForRouteResponse response) {
public void zoomIncludeClosestVehicle(HashSet<String> routeIds,
ObaTripsForRouteResponse response) {
if (mMap == null) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,18 @@ public static void promptUserInstallMaps(final Context context) {
}

/**
* Gets the location of the vehicle closest to the provided location running the provided routes
* Gets the location of the vehicle closest to the provided location running the provided
* routes
*
* @param response response containing list of trips with vehicle locations
* @param routeIds markers representing real-time positions for the provided routeIds will be
* checked for proximity to the location (all other routes are ignored)
* @param loc location
* checked for proximity to the location (all other routes are ignored)
* @param loc location
* @return the closest vehicle location to the given location, or null if a closest vehicle
* couldn't be found
*/
public static LatLng getClosestVehicle(ObaTripsForRouteResponse response, HashSet<String> routeIds, Location loc) {
public static LatLng getClosestVehicle(ObaTripsForRouteResponse response,
HashSet<String> routeIds, Location loc) {
if (loc == null) {
return null;
}
Expand Down Expand Up @@ -195,8 +197,10 @@ public static LatLng getClosestVehicle(ObaTripsForRouteResponse response, HashSe
return null;
}

Log.d(TAG, "Closest vehicle is vehicleId=" + closestVehicle.getVehicleId() + ", routeId=" + ", tripId=" +
closestVehicle.getActiveTripId() + " at " + closestVehicleLocation.getLatitude() + ","
Log.d(TAG, "Closest vehicle is vehicleId=" + closestVehicle.getVehicleId() + ", routeId="
+ ", tripId=" +
closestVehicle.getActiveTripId() + " at " + closestVehicleLocation.getLatitude()
+ ","
+ closestVehicleLocation.getLongitude());

return makeLatLng(closestVehicleLocation);
Expand Down

0 comments on commit b405ef7

Please sign in to comment.