zeroXbrock / Tomado.Android

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

Can't delete item if editing immediately after adding a freetime session #64

Closed zeroXbrock closed 8 years ago

zeroXbrock commented 8 years ago

Since it hasn't been added to the sessions list yet, trying to delete it just dismisses the edit view and the session gets added.

zeroXbrock commented 8 years ago

Session is being deleted properly, but the adapter isn't refreshing properly. Refreshing the list will prove this.

zeroXbrock commented 8 years ago

Session is not being deleted from _sessions but is being deleted from the database. Session being passed to the delete method may not be exactly the same as the session stored in the list.

zeroXbrock commented 8 years ago

Removal by ID did the trick.