only allow asymmetric encryption or symmetric encryption of files, not both like before

This commit is contained in:
Thialfihar
2010-04-29 01:38:19 +00:00
parent a037815454
commit 5cf07b4a03
3 changed files with 29 additions and 8 deletions

View File

@@ -155,6 +155,8 @@ public class DecryptMessageActivity extends BaseActivity {
error = e.getLocalizedMessage();
} catch (Apg.GeneralException e) {
error = e.getLocalizedMessage();
} catch (Apg.NoAsymmetricEncryptionException e) {
error = "no asymmetric encryption found";
}
if (error != null) {
Toast.makeText(this, "Error: " + error, Toast.LENGTH_SHORT).show();