From d0efe6eae2fb79d0f96373ffc51b7a40c2f3ff80 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 14 Sep 2022 12:27:02 +0200 Subject: [PATCH] bump recording wait for write to 8s --- .../java/eu/siacs/conversations/ui/RecordingActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java b/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java index 6c58a404d..ad8684b72 100644 --- a/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/RecordingActivity.java @@ -156,7 +156,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener @Override public void run() { try { - if (!latch.await(5, TimeUnit.SECONDS)) { + if (!latch.await(8, TimeUnit.SECONDS)) { Log.d(Config.LOGTAG, "time out waiting for output file to be written"); } } catch (final InterruptedException e) { @@ -199,7 +199,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener setupFileObserver(parentDirectory); } - private void setupFileObserver(File directory) { + private void setupFileObserver(final File directory) { mFileObserver = new FileObserver(directory.getAbsolutePath()) { @Override @@ -219,7 +219,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener } @Override - public void onClick(View view) { + public void onClick(final View view) { switch (view.getId()) { case R.id.cancel_button: mHandler.removeCallbacks(mTickExecutor);