diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-30 22:05:55 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-30 22:05:55 -0600 |
commit | 1b179f55a610e212890f25874f29044475fdb016 (patch) | |
tree | a1a13390ae1a89e84fac2c7367c0834fb8a526c2 /androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices | |
parent | c11d9d0aaa0428e93df978642a54ba466ccf4e93 (diff) | |
download | etbsa-trackermap-mobile-1b179f55a610e212890f25874f29044475fdb016.tar.gz etbsa-trackermap-mobile-1b179f55a610e212890f25874f29044475fdb016.tar.bz2 etbsa-trackermap-mobile-1b179f55a610e212890f25874f29044475fdb016.zip |
- ViewModel LiveData no longer externally mutable.
- Observers in fragments now owned by viewLifecycleOwner.
- Disabled center animation on MapFragment startup
- Search filter now triggered automatically.
- Case insensitive filter logic.
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.kt | 2 |
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 eb8dcbc..3c2d6ce 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 @@ -55,7 +55,7 @@ class DevicesFragment : Fragment() { @DelicateCoroutinesApi private fun setupObservers() { - unitsViewModel.units.observe(this) { units -> + unitsViewModel.units.observe(viewLifecycleOwner) { units -> Log.d("DevicesFragment", "Success $units") binding.devicesList.swapAdapter( DevicesAdapter(units, this::itemAction), |