mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Fixed display and font size scaling for MainActivity
This commit is contained in:
1 parent
549a915b24
commit
4b63882c70
6 files changed
+24
-14
No files matched your search
@@ -11,6 +11,6 @@ dependencies {
|
||||
implementation("org.json:json:20230618")
|
||||
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
testImplementation("io.mockk:mockk:1.13.7")
|
||||
testImplementation("io.mockk:mockk:1.13.8")
|
||||
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
|
||||
}
|
||||
@@ -97,6 +97,7 @@ class DataParser(private val dispatcher: CoroutineDispatcher) {
|
||||
val bstar = values[14].toDouble()
|
||||
OrbitalData(name, epoch, meanmo, eccn, incl, raan, argper, meanan, catnum, bstar)
|
||||
} catch (exception: Exception) {
|
||||
println("CSV parsing exception: $exception")
|
||||
null
|
||||
}
|
||||
|
||||
@@ -123,6 +124,7 @@ class DataParser(private val dispatcher: CoroutineDispatcher) {
|
||||
val bstar: Double = 1.0e-5 * tle[1].substring(53, 59).toDouble() / 10.0.pow(tle[1].substring(60, 61).toDouble())
|
||||
OrbitalData(name, epoch, meanmo, eccn, incl, raan, argper, meanan, catnum, bstar)
|
||||
} catch (exception: Exception) {
|
||||
println("TLE parsing exception: $exception")
|
||||
null
|
||||
}
|
||||
|
||||
@@ -140,6 +142,7 @@ class DataParser(private val dispatcher: CoroutineDispatcher) {
|
||||
val catnum = if (json.isNull("norad_cat_id")) null else json.getInt("norad_cat_id")
|
||||
SatRadio(uuid, info, alive, dlinkLow, dlinkHigh, dlinkMode, ulinkLow, ulinkHigh, ulinkMode, inverted, catnum)
|
||||
} catch (exception: Exception) {
|
||||
println("JSON parsing exception: $exception")
|
||||
null
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user