zeroXbrock / Tomado.Android

The app that helps you work smarter. Made public for you (;
1 stars 0 forks source link

Recurring days don't persist when editing other fields in edit session mode #88

Closed zeroXbrock closed 8 years ago

zeroXbrock commented 8 years ago

Issue can be resolved by implementing the RecurringView's OnButtonClick (callback) method to update the session's weekdays in SessionsFragment's _sessions and the database. Copy a model from another edit callback in the fragment.

zeroXbrock commented 8 years ago

Implementation used to fix this bug cause another bug... Find another solution.

zeroXbrock commented 8 years ago

Found it

zeroXbrock commented 8 years ago

lol more info: I implemented the button click adapter in the sessions fragment and send the event from the adapter to it when a weekday was selected. I store that info in the fragment while a session is being edited. Then when we reset the adapter, I pass a list of days of the week as a parameter to the adapter reset method, and then populate the items appropriately in the adapter on load.