import/export/delete/save keyrings working with new database stuff

This commit is contained in:
Thialfihar
2010-05-26 15:25:14 +00:00
parent 6f28f5ee4e
commit fa99a70a49
7 changed files with 439 additions and 137 deletions

View File

@@ -16,6 +16,7 @@
package org.thialfihar.android.apg;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SignatureException;
@@ -24,6 +25,7 @@ import java.util.Vector;
import org.bouncycastle2.openpgp.PGPException;
import org.bouncycastle2.openpgp.PGPSecretKey;
import org.bouncycastle2.openpgp.PGPSecretKeyRing;
import org.thialfihar.android.apg.provider.Database;
import org.thialfihar.android.apg.ui.widget.KeyEditor;
import org.thialfihar.android.apg.ui.widget.SectionView;
import org.thialfihar.android.apg.utils.IterableIterator;
@@ -254,6 +256,10 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener {
error = "" + e;
} catch (Apg.GeneralException e) {
error = "" + e;
} catch (Database.GeneralException e) {
error = "" + e;
} catch (IOException e) {
error = "" + e;
}
data.putInt("type", Id.message.done);