diff options
Diffstat (limited to 'camera/libcameraservice/CameraHardwareStub.cpp')
-rw-r--r-- | camera/libcameraservice/CameraHardwareStub.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/libcameraservice/CameraHardwareStub.cpp b/camera/libcameraservice/CameraHardwareStub.cpp index ea21af82b..3d6b0b1ea 100644 --- a/camera/libcameraservice/CameraHardwareStub.cpp +++ b/camera/libcameraservice/CameraHardwareStub.cpp @@ -183,6 +183,10 @@ void CameraHardwareStub::stopPreview() mPreviewThread.clear(); } +bool CameraHardwareStub::previewEnabled() { + return mPreviewThread != 0; +} + // --------------------------------------------------------------------------- int CameraHardwareStub::beginAutoFocusThread(void *cookie) |