From d6335a65fcedb60fd24815968cf193fba664b2fd Mon Sep 17 00:00:00 2001 From: rmceoin Date: Tue, 12 May 2009 23:50:30 +0000 Subject: [PATCH] OI Safe: added confirmation of Export git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@2076 72b678ce-9140-0410-bee8-679b907dd61a --- AndroidManifest.xml | 1 + default.properties | 11 +++++++++++ res/values/strings.xml | 3 ++- src/org/openintents/safe/CategoryList.java | 16 +++++++++++++++- 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6a01193..9e89ac3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -115,4 +115,5 @@ + \ No newline at end of file diff --git a/default.properties b/default.properties index eba5c59..9c6195e 100644 --- a/default.properties +++ b/default.properties @@ -9,3 +9,14 @@ # Project target. target=android-2 +# apk configurations. This property allows creation of APK files with limited +# resources. For example, if your application contains many locales and +# you wish to release multiple smaller apks instead of a large one, you can +# define configuration to create apks with limited language sets. +# Format is a comma separated list of configuration names. For each +# configuration, a property will declare the resource configurations to +# include. Example: +# apk-configurations=european,northamerica +# apk-config-european=en,fr,it,de,es +# apk-config-northamerica=en,es +apk-configurations= diff --git a/res/values/strings.xml b/res/values/strings.xml index 5f033dc..fc7a24d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -65,7 +65,8 @@ Cannot decrypt category Cannot decrypt password Error exporting database - Export Database + Export Database + This will export the password database to a plaintext file. THIS IS VERY DANGEROUS. Make sure that you delete the file after you are done with it. Are you sure you want to export? Export to '%s' successful. Warning! The file is not encrypted. Unable to create export file 'oisafe.csv' on SDCARD. You might try disconnecting USB from computer. Import Database diff --git a/src/org/openintents/safe/CategoryList.java b/src/org/openintents/safe/CategoryList.java index 80966df..0b1d7ea 100644 --- a/src/org/openintents/safe/CategoryList.java +++ b/src/org/openintents/safe/CategoryList.java @@ -529,7 +529,21 @@ public class CategoryList extends ListActivity { startActivity(help); break; case EXPORT_INDEX: - exportDatabase(); + Dialog exportDialog = new AlertDialog.Builder(CategoryList.this) + .setIcon(R.drawable.passicon) + .setTitle(R.string.export_database) + .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + exportDatabase(); + } + }) + .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + } + }) + .setMessage(R.string.export_msg) + .create(); + exportDialog.show(); break; case IMPORT_INDEX: importDatabase(); -- 2.50.1