Skip to content

Commit

Permalink
Update DescriptionGenerator.java (#34)
Browse files Browse the repository at this point in the history
updated local vars
  • Loading branch information
numanSlm authored Feb 16, 2024
2 parents 1de3a72 + 0e65f5a commit 822c59b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ void writePace(Speed speed, StringBuilder builder, int resId, String lineBreak)
}

/**
* @param altitudeM altitudeM in meters
* @param altitude_M altitude_M in meters
* @param builder StringBuilder to append
* @param resId resource id of altitude string
* @param lineBreak line break string
*/
@VisibleForTesting
void writeAltitude(double altitudeM, StringBuilder builder, int resId, String lineBreak) {
long altitudeInM = Math.round(altitudeM);
long altitudeInFt = Math.round(Distance.of(altitudeM).toFT());
builder.append(context.getString(resId, altitudeInM, altitudeInFt));
void writeAltitude(double altitude_M, StringBuilder builder, int resId, String lineBreak) {
long altitude_M = Math.round(altitude_M);
long altitudeInFt = Math.round(Distance.of(altitude_M).toFT());
builder.append(context.getString(resId, altitude_M, altitudeInFt));
builder.append(lineBreak);
}
}

0 comments on commit 822c59b

Please sign in to comment.