dvdroid/res/values/strings.xml
Tom Willemsen f30b4fcd3a Add edit and delete functionality
* 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'.
2012-08-10 22:03:34 +02:00

11 lines
455 B
XML

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DVDroid</string>
<string name="name_entry">Title...</string>
<string name="wishlist_entry">On wishlist</string>
<string name="watched_entry">Watched</string>
<string name="main_menu_add">Add</string>
<string name="add_menu_save">Save</string>
<string name="main_context_menu_edit">Edit</string>
<string name="main_context_menu_delete">Delete</string>
</resources>