Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cffa446 authored by Yu Shan Emily Lau's avatar Yu Shan Emily Lau
Browse files

Inserted a 1.5s wait time between the camera release and new camrea.

Change-Id: I7540064a6e5229be1ef0fe266cd3050ae36b33a4
parent 74d48436
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -212,8 +212,13 @@ public class MediaPlayerPerformance extends ActivityInstrumentationTestCase<Medi
    }

    private void terminateMessageLooper() {
        try {
            mLooper.quit();
            mCamera.release();
            Thread.sleep(1500);
        } catch (Exception e) {
            Log.v(TAG, e.toString());
        }
    }

    private final class RawPreviewCallback implements PreviewCallback {