From a44abd307a5cc79500ac6cca87ed32d5b1c5a6aa Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sat, 11 May 2019 14:11:02 +0200 Subject: [PATCH] flush() explicitly before close() - although, the docs says other, there is a difference eg. on android7/motog and data are not ready without flush() when read from another thread --- src/org/thoughtcrime/securesms/util/Util.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/util/Util.java b/src/org/thoughtcrime/securesms/util/Util.java index cc71ba643..bd58afcce 100644 --- a/src/org/thoughtcrime/securesms/util/Util.java +++ b/src/org/thoughtcrime/securesms/util/Util.java @@ -178,6 +178,7 @@ public class Util { } in.close(); + out.flush(); out.close(); return total;