mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Restored satellite selection functionality
This commit is contained in:
1 parent
80ba3644f7
commit
a7c840d532
11 files changed
+118
-87
No files matched your search
@@ -116,8 +116,10 @@ class DataRepository(
|
||||
|
||||
override suspend fun getTransmitters(catnum: Int) = localSource.getTransmitters(catnum)
|
||||
|
||||
override suspend fun updateSelection(catnums: List<Int>, isSelected: Boolean) {
|
||||
localSource.updateEntriesSelection(catnums, isSelected)
|
||||
override fun updateSelection(catnums: List<Int>) {
|
||||
repositoryScope.launch {
|
||||
localSource.updateEntriesSelection(catnums)
|
||||
}
|
||||
}
|
||||
|
||||
private suspend fun importSatellites(stream: InputStream): List<SatEntry> {
|
||||
|
||||
@@ -36,7 +36,7 @@ interface ILocalSource {
|
||||
|
||||
suspend fun updateEntries(entries: List<SatEntry>)
|
||||
|
||||
suspend fun updateEntriesSelection(catnums: List<Int>, isSelected: Boolean)
|
||||
suspend fun updateEntriesSelection(catnums: List<Int>)
|
||||
|
||||
suspend fun updateTransmitters(transmitters: List<Transmitter>)
|
||||
|
||||
|
||||
@@ -42,5 +42,5 @@ interface IDataRepository {
|
||||
|
||||
suspend fun getTransmitters(catnum: Int): List<Transmitter>
|
||||
|
||||
suspend fun updateSelection(catnums: List<Int>, isSelected: Boolean = true)
|
||||
fun updateSelection(catnums: List<Int>)
|
||||
}
|
||||
Reference in new issue
Block a user