]> hydra-www.ietfng.org Git - android-vcpass-oisafe/commitdiff
OI Safe: Secure deletion of CSV files after import.
authorpeli0101 <peli0101@72b678ce-9140-0410-bee8-679b907dd61a>
Fri, 3 Apr 2009 07:03:10 +0000 (07:03 +0000)
committerpeli0101 <peli0101@72b678ce-9140-0410-bee8-679b907dd61a>
Fri, 3 Apr 2009 07:03:10 +0000 (07:03 +0000)
git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@2013 72b678ce-9140-0410-bee8-679b907dd61a

readme.txt
src/org/openintents/safe/CategoryList.java

index bc3d4c8b50941321265131d3cd9685eb54514331..8da2698aff6f15251a5aa5c14e8c44674bc9be56 100644 (file)
@@ -28,6 +28,7 @@ To obtain the current release, visit
 release: 1.1.1\r
 date: 2009-??\r
 \r
+- Secure deletion of CSV files after import.\r
 - Add support for file encryption.\r
 - Add Trivium stream cipher.\r
 \r
index 6150113450f76f650b5f20bb8361f0237197fd7e..80966dfc50799a046b323928d8ef6827fe0eb6cd 100644 (file)
@@ -31,7 +31,7 @@ import org.openintents.intents.CryptoIntents;
 import org.openintents.safe.dialog.DialogHostingActivity;
 import org.openintents.safe.service.ServiceDispatchImpl;
 import org.openintents.util.IntentUtils;
-
+import org.openintents.util.SecureDelete;
 
 import android.app.AlertDialog;
 import android.app.Dialog;
@@ -50,8 +50,8 @@ import android.preference.PreferenceManager;
 import android.util.Log;
 import android.view.ContextMenu;
 import android.view.Menu;
-import android.view.View;
 import android.view.MenuItem;
+import android.view.View;
 import android.view.ContextMenu.ContextMenuInfo;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
@@ -158,7 +158,8 @@ public class CategoryList extends ListActivity {
                                                .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
                                                        public void onClick(DialogInterface dialog, int whichButton) {
                                                                File csvFile=new File(importedFilename);
-                                                               csvFile.delete();
+                                                               //csvFile.delete();
+                                                               SecureDelete.delete(csvFile);
                                                                importedFilename="";
                                                        }
                                                })