- if (tracker_horiz_value.isEnabled() && tracker_vert_value.isEnabled()) {
- String th = tracker_horiz_value.getSelectedItem().toString();
- String tv = tracker_vert_value.getSelectedItem().toString();
- tracker_horiz_label.setText(get_tracker_horiz_label());
- tracker_vert_label.setText(get_tracker_vert_label());
- set_tracker_horiz_values();
- set_tracker_vert_values();
- int[] t = {
- (int) (AltosConvert.height.parse(th, !imperial_units) + 0.5),
- (int) (AltosConvert.height.parse(tv, !imperial_units) + 0.5)
- };
- set_tracker_distances(t);
+ if (tracker_motion_value.isEnabled()) {
+ String motion = tracker_motion_value.getSelectedItem().toString();
+ tracker_motion_label.setText(get_tracker_motion_label());
+ set_tracker_motion_values();
+ set_tracker_motion((int) (AltosConvert.height.parse(motion, !imperial_units) + 0.5));