issues
search
A-short-name
/
G01-Timebanking
0
stars
0
forks
source link
Create PreferencesRepository, transfer all managing data on viewModel
#31
Closed
GrayNeel
closed
2 years ago
GrayNeel
commented
2 years ago
[x] Create PreferencesRepository which load and store all the preferences info: UserInfo, ProfilePicture, TimeSlotDetails
[x] Move all data management inside the VM (both for UserProfile and TimeSlotDetails)
[x] Edit will call
vm.saveData()
that will both update preferences and LiveData object
[x] Show will receive an already updated VM (which means that the first time the main activity or the VM will call the
repo.loadData()
vm.saveData()
that will both update preferences and LiveData objectrepo.loadData()