bump recording wait for write to 8s

This commit is contained in:
Daniel Gultsch 2022-09-14 12:27:02 +02:00
parent 6e53ab3694
commit d0efe6eae2

View file

@ -156,7 +156,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener
@Override @Override
public void run() { public void run() {
try { 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"); Log.d(Config.LOGTAG, "time out waiting for output file to be written");
} }
} catch (final InterruptedException e) { } catch (final InterruptedException e) {
@ -199,7 +199,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener
setupFileObserver(parentDirectory); setupFileObserver(parentDirectory);
} }
private void setupFileObserver(File directory) { private void setupFileObserver(final File directory) {
mFileObserver = mFileObserver =
new FileObserver(directory.getAbsolutePath()) { new FileObserver(directory.getAbsolutePath()) {
@Override @Override
@ -219,7 +219,7 @@ public class RecordingActivity extends Activity implements View.OnClickListener
} }
@Override @Override
public void onClick(View view) { public void onClick(final View view) {
switch (view.getId()) { switch (view.getId()) {
case R.id.cancel_button: case R.id.cancel_button:
mHandler.removeCallbacks(mTickExecutor); mHandler.removeCallbacks(mTickExecutor);