Merge "Camera2: Ignore exception on double-completed capture sequences." into nyc-dev
am: 5856779
* commit '5856779c3a3e00e256cdf5cb571a85975d781cf4':
Camera2: Ignore exception on double-completed capture sequences.
Change-Id: Ie22c0bbdc83cba529bf521ebaef3349a5e22b976
This commit is contained in:
@@ -628,7 +628,12 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession
|
||||
* close the camera further by unconfiguring and then firing {@code onClosed}.</p>
|
||||
*/
|
||||
private void finishPendingSequence(int sequenceId) {
|
||||
mSequenceDrainer.taskFinished(sequenceId);
|
||||
try {
|
||||
mSequenceDrainer.taskFinished(sequenceId);
|
||||
} catch (IllegalStateException e) {
|
||||
// Workaround for b/27870771
|
||||
Log.w(TAG, e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private class SequenceDrainListener implements TaskDrainer.DrainListener {
|
||||
|
||||
Reference in New Issue
Block a user