Inserted a 1.5s wait time between the camera release and new camrea.
Change-Id: I7540064a6e5229be1ef0fe266cd3050ae36b33a4
This commit is contained in:
@@ -212,8 +212,13 @@ public class MediaPlayerPerformance extends ActivityInstrumentationTestCase<Medi
|
||||
}
|
||||
|
||||
private void terminateMessageLooper() {
|
||||
mLooper.quit();
|
||||
mCamera.release();
|
||||
try {
|
||||
mLooper.quit();
|
||||
mCamera.release();
|
||||
Thread.sleep(1500);
|
||||
} catch (Exception e) {
|
||||
Log.v(TAG, e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
private final class RawPreviewCallback implements PreviewCallback {
|
||||
|
||||
Reference in New Issue
Block a user