mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-03 11:37:24 +00:00
v1.4.4 - Added custom TLE file import from file/url and PolarView rotation using sensors data
This commit is contained in:
1 parent
d8e4bd7eb7
commit
e38ad2fe8b
14 files changed
+37
-14
No files matched your search
@@ -40,7 +40,7 @@ class RemoteDataSource @Inject constructor(
|
||||
withContext(Dispatchers.IO) {
|
||||
urlList.forEach {
|
||||
val request = Request.Builder().url(it.url).build()
|
||||
val stream = client.newCall(request).execute().body()?.byteStream()
|
||||
val stream = client.newCall(request).execute().body?.byteStream()
|
||||
streamTable[it.url] = stream
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,12 +100,12 @@ class TransmitterAdapter : RecyclerView.Adapter<TransmitterAdapter.TransmitterHo
|
||||
if (transmitter.isInverted) {
|
||||
binding.transInverted.text = String.format(
|
||||
context.getString(R.string.trans_inverted),
|
||||
context.getString(android.R.string.yes)
|
||||
context.getString(R.string.btn_yes)
|
||||
)
|
||||
} else {
|
||||
binding.transInverted.text = String.format(
|
||||
context.getString(R.string.trans_inverted),
|
||||
context.getString(android.R.string.no)
|
||||
context.getString(R.string.btn_no)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user