summaryrefslogtreecommitdiffstats
path: root/src/ryuslash/org/dvdroid/AddDVDActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* RearrangeGravatar Tom Willemsen2012-08-081-23/+23
|
* Use actions instead of buttonsGravatar Tom Willemsen2012-08-081-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | * res/layout/add.xml: Remove save_button. * res/layout/main.xml: Remove add_button. * res/menu/add_activity.xml: * res/menu/main_activity.xml: New menus. * res/values/strings.xml: Rename `add_button' to `main_menu_add' and `save_button' to `add_menu_save'. * src/ryuslash/org/dvdroid/AddDVDActivity.java (createDVD): Renamed from `saveDVD', no longer takes a `View' as an argument. Don't call finish in this function. (onCreateOptionsMenu): (onOptionsItemSelected): New overrides. * src/ryuslash/org/dvdroid/DVDroidActivity.java (onCreateOptionsMenu): (onOptionsItemsSelected): New overrides. (showAddDVD): Renamed from `addDVD', no longer takes a `View' as an argument.
* Separate adding of DVDsGravatar Tom Willemsen2012-08-081-0/+59
* AndroidManifest.xml: Add `AddDVDActivity' as an activity. * res/layout/add.xml: Layout for `AddDVDActivity'. * res/layout/main.xml: Remove the nested `LinearLayout' and `EditText' widgets. * res/values/strings.xml: Change the `name_entry' hint text, add captions for `wishlist_entry', `watched_entry' and `save_button'. * src/ryuslash/org/dvdroid/AddDVDActivity.java: New activity. * src/ryuslash/org/dvdroid/DVDDataSource.java (createDVD): Accept WATCHED and WISHLIST parameters and send these to the database instead of `0' and `1'. * src/ryuslash/org/dvdroid/DVDroidActivity.java (addDVD): Call `AddDVDActivity' to add a new DVD to the collection. (onActivityResult): New override.