mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Updated dependencies, minor fixes
This commit is contained in:
1 parent
e4a4b7eeb1
commit
378c3ac4bf
5 files changed
+14
-14
No files matched your search
+3
-3
@@ -135,7 +135,7 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
|
||||
settingsData.dataBtnWeb.clickWithDebounce {
|
||||
// val action = SettingsFragmentDirections.settingsToSources()
|
||||
// findNavController().navigate(action)
|
||||
viewModel.updateDataFromWeb(emptyList())
|
||||
viewModel.updateDataFromWeb()
|
||||
}
|
||||
settingsData.dataBtnFile.clickWithDebounce { contentRequest.launch("*/*") }
|
||||
settingsData.dataBtnClear.clickWithDebounce { viewModel.clearData() }
|
||||
@@ -147,8 +147,8 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
|
||||
val radiosFormat = getString(R.string.data_radios)
|
||||
settingsData.dataRadios.text = String.format(radiosFormat, number)
|
||||
}
|
||||
getNavResult<List<String>>(R.id.nav_settings, "sources") { sources ->
|
||||
viewModel.updateDataFromWeb(sources)
|
||||
getNavResult<List<String>>(R.id.nav_settings, "sources") {
|
||||
viewModel.updateDataFromWeb()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ class SettingsViewModel @Inject constructor(
|
||||
repository.updateFromFile(uri)
|
||||
}
|
||||
|
||||
fun updateDataFromWeb(sources: List<String>) {
|
||||
fun updateDataFromWeb() {
|
||||
// settings.saveDataSources(sources)
|
||||
// repository.updateFromWeb(sources)
|
||||
repository.updateFromWebNew()
|
||||
|
||||
Reference in new issue
Block a user