|
|
|
@ -1288,7 +1288,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
os.write(buffer, 0, len);
|
|
|
|
|
|
|
|
|
|
// Update progress
|
|
|
|
|
if (attachment.size != null)
|
|
|
|
|
if (attachment.size != null && attachment.size > 0)
|
|
|
|
|
db.attachment().setProgress(attachment.id, (int) (size * 100 / attachment.size));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|