@Override
    public void surfaceDestroyed(SurfaceHolder holder) {
      surfaceAvailable = false;
    }
Callback class for the Surface Holder
java/com/google/android/apps/authenticator/barcode/preview/CameraSourcePreview.java