Merge "Camera2: Ignore exception on double-completed capture sequences." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5856779c3a
@@ -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