Commit graph

10 commits

Author SHA1 Message Date
ee4a5927ab Show collection, not wishlist
* src/ryuslash/org/dvdroid/DVDDataSource.java (getListFromCursor):
  (getWatchList):
  (getCollection): New functions.

  (getWishList): Use `getListFromCursor' to retrieve data.

* src/ryuslash/org/dvdroid/DVDroidActivity.java (getData): New
  function.

  (onActivityResult):
  (onCreate): Use `getData' instead of `datasource.getWishlist'.
2012-08-08 23:32:42 +02:00
d525b27d44 Rearrange 2012-08-08 23:07:28 +02:00
e8df341197 Use actions instead of buttons
* 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.
2012-08-08 23:05:19 +02:00
fa6291ef31 Target SDK 15 2012-08-08 22:59:23 +02:00
1f3332e279 Rearrange 2012-08-08 22:20:13 +02:00
9fc77db218 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.
2012-08-08 22:11:12 +02:00
0f2bd8ae16 Typo fix in site.scm 2012-08-08 02:39:32 +02:00
dc8baab8dc Add .gitignore
Should ignore all generated files.
2012-08-08 02:34:15 +02:00
e716a10168 Add site.scm for "about" generation on cgit 2012-08-08 02:33:40 +02:00
073ad25e61 Initial commit 2012-08-08 02:16:57 +02:00