From ec157026deea7b72ff233a20c0ed40fa548f75d6 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 20 May 2022 23:21:37 -0500 Subject: - [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. --- .../java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices') 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) -- cgit v1.2.3