Change code style of SettingTest.testChangePreferredUnits.

This commit is contained in:
youtaol
2012-06-12 11:23:51 +08:00
parent 27aa9d6471
commit 2909d8a9c3
3 changed files with 21 additions and 11 deletions
@@ -119,8 +119,7 @@ public class ChartView extends View {
private int effectiveHeight = 0;
private boolean chartByDistance = true;
@VisibleForTesting
public boolean metricUnits = true;
private boolean metricUnits = true;
private boolean reportSpeed = true;
private boolean showPointer = false;
@@ -1001,4 +1000,14 @@ public class ChartView extends View {
return false;
}
}
/**
* Returns the status of metricUnits.
*
* @return the status of metricUnits
*/
@VisibleForTesting
public boolean isMetricUnits() {
return metricUnits;
}
}