View encrypted message improvements

This commit is contained in:
M66B
2018-09-03 08:43:44 +00:00
parent c75079a5ce
commit a64b7999f2
6 changed files with 61 additions and 64 deletions

View File

@@ -129,8 +129,6 @@ public class FragmentCompose extends FragmentEx {
private OpenPgpServiceConnection openPgpConnection = null;
private static final int ATTACHMENT_BUFFER_SIZE = 8192; // bytes
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -613,7 +611,7 @@ public class FragmentCompose extends FragmentEx {
os = new BufferedOutputStream(new FileOutputStream(file));
int size = 0;
byte[] buffer = new byte[ATTACHMENT_BUFFER_SIZE];
byte[] buffer = new byte[Helper.ATTACHMENT_BUFFER_SIZE];
for (int len = is.read(buffer); len != -1; len = is.read(buffer)) {
size += len;
os.write(buffer, 0, len);