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

Change-Id: I7540064a6e5229be1ef0fe266cd3050ae36b33a4
This commit is contained in:
Yu Shan Emily Lau
2010-03-16 18:16:51 -07:00
parent 74d4843641
commit 1cffa446ee

View File

@@ -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 {