@Override
    public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
      surfaceAvailable = true;
    }
Callback class for the Surface Holder
java/com/google/android/apps/authenticator/barcode/preview/CameraSourcePreview.java