- mMaxHeightView.setText(String.format("%6.0f m", state.max_height));
- mMaxAccelView.setText(String.format("%6.0f m/s²", state.max_acceleration));
+ mMaxHeightView.setText(String.format("%6.0f m", state.max_height()));
+ if (state.max_acceleration() != AltosLib.MISSING)
+ mMaxAccelView.setText(String.format("%6.0f m/s²", state.max_acceleration()));
+ else
+ mMaxAccelView.setText("missing");