X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosdroid%2Fsrc%2Forg%2Faltusmetrum%2FAltosDroid%2FTabFlight.java;h=5349612cc1ec823a602a619dfe07766bc4923b9f;hb=a61217f0a6d0ef48b6471f632c4600255867e831;hp=83df63fa7efcb1706aed2e724c8e37818908c531;hpb=21d176f161b90f18f236ef887cef9676d712eee3;p=fw%2Faltos diff --git a/altosdroid/src/org/altusmetrum/AltosDroid/TabFlight.java b/altosdroid/src/org/altusmetrum/AltosDroid/TabFlight.java index 83df63fa..5349612c 100644 --- a/altosdroid/src/org/altusmetrum/AltosDroid/TabFlight.java +++ b/altosdroid/src/org/altusmetrum/AltosDroid/TabFlight.java @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,7 +18,7 @@ package org.altusmetrum.AltosDroid; -import org.altusmetrum.altoslib_10.*; +import org.altusmetrum.altoslib_12.*; import android.app.Activity; import android.os.Bundle; @@ -87,7 +88,7 @@ public class TabFlight extends AltosDroidTab { set_value(speed_view, AltosConvert.speed, 6, state.speed()); set_value(height_view, AltosConvert.height, 6, state.height()); set_value(max_speed_view, AltosConvert.speed, 6, state.max_speed()); - set_value(max_height_view, AltosConvert.speed, 6, state.max_height()); + set_value(max_height_view, AltosConvert.height, 6, state.max_height()); if (from_receiver != null) { elevation_view.setText(AltosDroid.number("%3.0f°", from_receiver.elevation)); set_value(range_view, AltosConvert.distance, 6, from_receiver.range);