commit | 55ebb6a2f4ebb32784e01eb323414a99d8fc1117 | [log] [tgz] |
---|---|---|
author | Wu-cheng Li <wuchengli@google.com> | Thu Mar 25 17:34:41 2010 +0800 |
committer | Wu-cheng Li <wuchengli@google.com> | Thu Mar 25 17:38:02 2010 +0800 |
tree | 13139bac8a46b7d90eaa65f001477b039806400a | |
parent | 11b14f8220ddc529aaa506d883d1e44ff06c6f95 [diff] |
Fix a potential bug of CameraTest. Looper.quit() is asynchronous. The looper may still has some preview callbacks in the queue after quit is called. The preview callback still uses the camera object (setHasPreviewCallback). After camera is released, RuntimeException will be thrown from the method. So we need to join the looper thread here. bug:2521202 Change-Id: I0ab74f657e3df3ff624a10763cb0a71cc07c691f