generated from Grigo/AndroidTemplate
Major architecture update + testink giteawebhook
This commit is contained in:
@@ -147,7 +147,22 @@ public class BottomSheetsManager {
|
||||
if (tvGPSQuality != null) tvGPSQuality.setText((vessel.getGPSQualityDescription()!=null) ? String.format("📊 Качество GPS: %s", vessel.getGPSQualityDescription()) : "📊 Качество GPS: --");
|
||||
if (tvSatellites != null) tvSatellites.setText((vessel.getSatellites()>0) ? String.format("Спутники: %d/%d", vessel.getActiveSatellites(), vessel.getSatellites()) : "Спутники: --/--");
|
||||
if (tvDOP != null) tvDOP.setText((vessel.getPdop()>0) ? String.format("📈 DOP: PDOP=%.2f HDOP=%.2f VDOP=%.2f", vessel.getPdop(), vessel.getHdop(), vessel.getVdop()) : "📈 DOP: PDOP=-- HDOP=-- VDOP=--");
|
||||
if (tvFixTime != null) tvFixTime.setText((vessel.getFixTime()>0) ? String.format("🕐 Время фикса: %s", new java.text.SimpleDateFormat("HH:mm:ss", java.util.Locale.getDefault()).format(new java.util.Date(vessel.getFixTime()))) : "🕐 Время фикса: --");
|
||||
if (tvFixTime != null) {
|
||||
String t = vessel.getFixTimeNmea();
|
||||
if (t != null && !t.isEmpty()) {
|
||||
String pretty = t;
|
||||
int dot = pretty.indexOf('.');
|
||||
if (dot > 0) pretty = pretty.substring(0, dot);
|
||||
if (pretty.length() == 6) {
|
||||
pretty = pretty.substring(0,2) + ":" + pretty.substring(2,4) + ":" + pretty.substring(4,6);
|
||||
}
|
||||
tvFixTime.setText(String.format("🕐 Время фикса: %s", pretty));
|
||||
} else if (vessel.getFixTime() > 0) {
|
||||
tvFixTime.setText(String.format("🕐 Время фикса: %s", new java.text.SimpleDateFormat("HH:mm:ss", java.util.Locale.getDefault()).format(new java.util.Date(vessel.getFixTime()))));
|
||||
} else {
|
||||
tvFixTime.setText("🕐 Время фикса: --");
|
||||
}
|
||||
}
|
||||
if (tvFixQuality != null) tvFixQuality.setText((vessel.getFixQuality()!=null) ? String.format("🔒 Качество фикса: %s", vessel.getFixQuality()) : "🔒 Качество фикса: --");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user