summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorWei Ding <weiding@codeaurora.org>2015-07-20 17:29:48 +0800
committerWei Ding <weiding@codeaurora.org>2015-07-22 17:10:16 +0800
commit7bc5cd2dfd2151eb6b5b57f1f87c44e134b20a92 (patch)
treefcd573e56d02c7aa26f0592e996d4982415538fb /src/com/android/camera/VideoModule.java
parent65ef775414a7cb604cf7f5a417152a67704669c7 (diff)
downloadandroid_packages_apps_Snap-7bc5cd2dfd2151eb6b5b57f1f87c44e134b20a92.tar.gz
android_packages_apps_Snap-7bc5cd2dfd2151eb6b5b57f1f87c44e134b20a92.tar.bz2
android_packages_apps_Snap-7bc5cd2dfd2151eb6b5b57f1f87c44e134b20a92.zip
SnapdragonCamera: Don't disable the camera
1) Don't disable the camera activities if atleast one camera is detected. 2) Pass CameraID to know profile is supported or not. Change-Id: I307bf0c5ca228eef2ae69596f648fbdabff83398
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index a920d959f..867561509 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -824,7 +824,7 @@ public class VideoModule implements CameraModule,
// TODO: This should be checked instead directly +1000.
if (mCaptureTimeLapse) quality += 1000;
mUnsupportedProfile = false;
- boolean hasProfile = CamcorderProfile.hasProfile(quality);
+ boolean hasProfile = CamcorderProfile.hasProfile(mCameraId, quality);
if (!hasProfile) {
mUnsupportedProfile = true;
return;