close streams more consistently (outside of encrypt/decrypt), force a new output filename guess if the ASCII armour checkbox state changes

This commit is contained in:
Thialfihar
2010-05-04 14:27:31 +00:00
parent e542c37eb3
commit 6b52878056
4 changed files with 22 additions and 8 deletions

View File

@@ -206,6 +206,8 @@ public class EncryptMessageActivity extends BaseActivity {
Apg.signText(in, out, getSecretKeyId(),
Apg.getPassPhrase(), getDefaultHashAlgorithm(), this);
}
out.close();
data.putString("message", new String(out.toByteArray()));
} catch (IOException e) {
error = e.getMessage();