aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-05-20 23:21:37 -0500
committerIván Ávalos <avalos@disroot.org>2022-05-20 23:21:37 -0500
commitec157026deea7b72ff233a20c0ed40fa548f75d6 (patch)
tree71f0ebb5c358fc53130edad39436b0c7b698f818 /androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices
parent22d2b3ed3569925fc3835dd5b53c6aacde86278a (diff)
downloadetbsa-trackermap-mobile-ec157026deea7b72ff233a20c0ed40fa548f75d6.tar.gz
etbsa-trackermap-mobile-ec157026deea7b72ff233a20c0ed40fa548f75d6.tar.bz2
etbsa-trackermap-mobile-ec157026deea7b72ff233a20c0ed40fa548f75d6.zip
- [shared] unitsFlow exposed to allow access to unfiltered units.
- [android] Improved memory usage by using unitsFlow in map. - [ios] Not rewritten yet, filter won't work.
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt
index e5143cb..6e1b1c6 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt
@@ -90,7 +90,7 @@ class DevicesFragment : Fragment() {
@DelicateCoroutinesApi
private fun setupObservers() {
Log.d("DevicesFragment", "setupObservers()")
- unitsViewModel.units.observe(viewLifecycleOwner) { units ->
+ unitsViewModel.displayedUnits.observe(viewLifecycleOwner) { units ->
Log.d("DevicesFragment", "Success $units")
binding.infoLoading.root.visibility = View.GONE
(binding.devicesList.adapter as DevicesAdapter).setData(units)