markrae / BookCollections

Android application for cataloging one's personal library.
1 stars 0 forks source link

Fragments create saved objects feature #38

Open markrae opened 6 years ago

markrae commented 6 years ago

What changed: 1) I modified the fragments' listeners and events to hand information to MainActivity. 2) I added methods to MainActivity that are called by those listeners in order to add Shelf and Book objects to the saved file. 3) Some Gradle files were modified as a byproduct of updating Android Studio.

Why: The goal of this feature branch was to enable NewShelfFragment and NewBookFragment to actually create the new shelves and books that they promise. To do that, our MainActivity needed the textbox info that those fragments obtain. The main way that fragments are supposed to communicate info back to their host activity is through event parameters and listeners.

Related issues: #1 User can create a new collection, #2 User can add a book by entering text