private void switchCamera(){
  if (mShowErrorAndFinish) {
    return;
  }
  if (mPaused) {
    return;
  }
  cancelCountDown();
  mAppController.freezeScreenUntilPreviewReady();
  initSurfaceTextureConsumer();
}

private void switchCamera ( ) { if ( mShowErrorAndFinish ) { return ; } if ( mPaused ) { return ; } cancelCountDown ( ) ; mAppController . freezeScreenUntilPreviewReady ( ) ; initSurfaceTextureConsumer ( ) ; }
re - initialize the camera if e . g . the hdr mode or facing property changed .
