summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
Diffstat (limited to 'camera')
-rw-r--r--camera/CameraHal.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp
index 8e14fec..7e18330 100644
--- a/camera/CameraHal.cpp
+++ b/camera/CameraHal.cpp
@@ -1715,11 +1715,10 @@ status_t CameraHal::setPreviewWindow(struct preview_stream_ops *window)
}
}else
{
- // Update the display adapter with the new window that is passed from CameraService
- ret = mDisplayAdapter->setPreviewWindow(window);
- if (previewEnabled()) {
- restartPreview();
- }
+ /* If mDisplayAdpater is already created. No need to do anything.
+ * We get a surface handle directly now, so we can reconfigure surface
+ * itself in DisplayAdapter if dimensions have changed
+ */
}
LOG_FUNCTION_NAME_EXIT;