diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-09-20 17:13:45 +0200 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-09-20 17:13:45 +0200 |
commit | 95e35a4ffa1f4c54078009ec6846450240a0884c (patch) | |
tree | e2509434cd7ecde2ebd5b1c3397dbf2759c2d495 /org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java | |
parent | fb49f9e9c8d1b6d27a489c047431925974738a24 (diff) | |
download | open-keychain-95e35a4ffa1f4c54078009ec6846450240a0884c.tar.gz open-keychain-95e35a4ffa1f4c54078009ec6846450240a0884c.tar.bz2 open-keychain-95e35a4ffa1f4c54078009ec6846450240a0884c.zip |
more Provider Helper methods
Diffstat (limited to 'org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java')
-rw-r--r-- | org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java b/org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java index d8a0cb33b..3a5ed9948 100644 --- a/org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java +++ b/org_apg/src/org/thialfihar/android/apg/ui/dialog/DeleteKeyDialogFragment.java @@ -23,6 +23,7 @@ import org.thialfihar.android.apg.Id; import org.thialfihar.android.apg.R; import org.thialfihar.android.apg.helper.PGPHelper; import org.thialfihar.android.apg.helper.PGPMain; +import org.thialfihar.android.apg.provider.ProviderHelper; import org.thialfihar.android.apg.util.Log; import android.app.AlertDialog; @@ -93,8 +94,11 @@ public class DeleteKeyDialogFragment extends DialogFragment { builder.setIcon(android.R.drawable.ic_dialog_alert); builder.setPositiveButton(R.string.btn_delete, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { - // deleteKey(deleteKeyRingId); - PGPMain.deleteKey(deleteKeyRingId); + if (keyType == Id.type.public_key) { + ProviderHelper.deletePublicKeyRing(activity, deleteKeyRingId); + } else { + ProviderHelper.deleteSecretKeyRing(activity, deleteKeyRingId); + } dismiss(); |