jeffdepiazza / WODJournal

https://github.com/jeffdepiazza/WODJournal.git
0 stars 0 forks source link

launch add new movement if newly added wod container is empty #4

Closed jeffdepiazza closed 10 years ago

jeffdepiazza commented 10 years ago

allows the user to go right into adding a movement if they JUST added a wod container.

jeffdepiazza commented 10 years ago

Had to add in a String that kept track of giving newly edited/created/inserted containers or movements to the Database Helper. We use a singular function to let us know that the database is done doing whatever it needed to do, so the activity had to keep track of what it told the database to do....so, when we get the 'hey, im done' back, requery the database, get the new Date_Holder and give it to the adapter to apply to the expandablelistview. All of this is the same no matter what we do, whether its an add/edit/delete/insert..... so the string is examined right after we have the adapter redraw the updated data...and to see if we need to spawn the add movement dialog...if so, we do it...if not, nothing further is done.