SEG2105-Group / JobZi

SEG2105 Android Application: Allows home owners and service providers to be matched to allow home owners to use the services of the service providers.
1 stars 0 forks source link

Add feature to delete availabilities for service provider. (not sure if this was part of deliverable 3) #153

Closed ghost closed 6 years ago

ghost commented 6 years ago

Simply implementing a long-click listener for each of the items in each group should work. Make use of the OnAddClickListener (which needs renaming) to delegate the deleting functionality (in a new method that needs to be created) to the parent fragment (ServiceProviderAvailabilitiesFragment in this case). This should retrieve the current profile from the database, delete the appropriate availability (passed in from the adapter) and then saved back to the database.