summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add search functionalityHEADmasterGravatar Tom Willemsen2012-08-168-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | * AndroidManifest.xml: Register `DVDroidActivity' as searchable. * res/drawable-hdpi/menu_search.png: * res/drawable-mdpi/menu_search.png: New icons. * res/menu/main_activity.xml: Add a search icon to the main activity's action menu. * res/values/strings.xml: Add strings "search_hint" and "menu_search". * res/xml/searchable.xml: New configuration file. * src/ryuslash/org/dvdroid/DVDDataSource.java (getQuery): New function. * src/ryuslash/org/dvdroid/DVDroidActivity.java (getData): New overload, calls `getQuery' to search for something instead of everything. (onCreate): If a search has been started, search, don't just show everything. (onCreateOptionsMenu): Instantiate the `SearchView' in order to use it.
* Add edit and delete functionalityGravatar Tom Willemsen2012-08-109-16/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * res/values/strings.xml: Add strings for `main_context_menu_edit' and `main_context_menu_delete'. * src/ryuslash/org/dvdroid/AddDVDActivity.java (saveDVD): Renamed from `createDVD'. When ID is greater than 0 update, otherwise create. (onCreate): Get ID from the `Intent' that was used to start this activity. If ID is greater than 0, show known information in the inputs. * src/ryuslash/org/dvdroid/DVDDataSource.java: (createValues): (updateDVD): (getById): New functions. (createDVD): Use `createValues' to get the values for the database. (deleteDVD): Add overloaded function that takes a `long', make the original function use this to delete a `DVD'. * src/ryuslash/org/dvdroid/DVDroidActivity.java: Implement `ActionMode.Callback'. (onActivityResult): If REQUESTCODE is `2' reset the intent information so as not to confuse it during its next invocation. Finish action mode. (onActionItemClicked): (onCreateActionMode): (onDestroyActionMode): (onListItemClick): (onPrepareActionMode): (reloadList): (showEditDVD): New functions. (onCreate): Instantiate the ADD_DVD `Intent'.
* Add icons to action bar itemsGravatar Tom Willemsen2012-08-106-2/+4
|
* Show collection, not wishlistGravatar Tom Willemsen2012-08-082-6/+35
| | | | | | | | | | | | | | * 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'.
* RearrangeGravatar Tom Willemsen2012-08-081-23/+23
|
* Use actions instead of buttonsGravatar Tom Willemsen2012-08-087-27/+70
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Target SDK 15Gravatar Tom Willemsen2012-08-081-10/+11
|
* RearrangeGravatar Tom Willemsen2012-08-081-26/+26
|
* Separate adding of DVDsGravatar Tom Willemsen2012-08-087-31/+123
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Typo fix in site.scmGravatar Tom Willemsen2012-08-081-1/+1
|
* Add .gitignoreGravatar Tom Willemsen2012-08-081-0/+2
| | | | Should ignore all generated files.
* Add site.scm for "about" generation on cgitGravatar Tom Willemsen2012-08-081-0/+6
|
* Initial commitGravatar Tom Willemsen2012-08-0815-0/+467