ui
This commit is contained in:
@@ -52,11 +52,11 @@ public class TrafficDataView extends ConstraintLayout {
|
||||
super.handleMessage(msg);
|
||||
if (msg.what == MSG_SEND_UPDATE) {
|
||||
java.text.DecimalFormat mFormat = new java.text.DecimalFormat("0.0");
|
||||
String accStr = mFormat.format(acceleration);
|
||||
String accStr = mFormat.format(Math.abs(acceleration));
|
||||
if (acceleration > 0f) {
|
||||
accTextView.setText(accStr);
|
||||
} else {
|
||||
accTextView.setText("—" + accStr);
|
||||
accTextView.setText("- " + accStr);
|
||||
}
|
||||
|
||||
if (mBrake > 0) {
|
||||
|
||||
Reference in New Issue
Block a user