From 9fc77db21845e2a89c03cea43228f95545c0b639 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 8 Aug 2012 22:11:12 +0200 Subject: [PATCH] Separate adding of DVDs * 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. --- AndroidManifest.xml | 1 + res/layout/add.xml | 30 ++++++++++ res/layout/main.xml | 23 ++------ res/values/strings.xml | 5 +- src/ryuslash/org/dvdroid/AddDVDActivity.java | 59 +++++++++++++++++++ src/ryuslash/org/dvdroid/DVDDataSource.java | 6 +- src/ryuslash/org/dvdroid/DVDroidActivity.java | 30 ++++++---- 7 files changed, 123 insertions(+), 31 deletions(-) create mode 100644 res/layout/add.xml create mode 100644 src/ryuslash/org/dvdroid/AddDVDActivity.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9b0638a..4c34e76 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -11,5 +11,6 @@ + diff --git a/res/layout/add.xml b/res/layout/add.xml new file mode 100644 index 0000000..22430f3 --- /dev/null +++ b/res/layout/add.xml @@ -0,0 +1,30 @@ + + + + + + + + +