From 2cd5731c010b21df1f441afac307b084b7356e95 Mon Sep 17 00:00:00 2001 From: Suman Mukherjee Date: Fri, 14 Mar 2014 11:57:35 +0530 Subject: Camera: Remove HFR option if it is not supported For front camera, HFR is not supported. But user can select HFR option and while trying to record, toast is coming as "HFR is not supported for selected resolution" Fix made: In UI popup, HFR option will not come if it is not supported for that sensor. Change-Id: I85b4d9a950cee6b0b6b1ac4d08c0c60f17dff23a CRs-Fixed: 627356 --- src/com/android/camera/CameraSettings.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/com/android/camera/CameraSettings.java') diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 60656cd08..d1089e711 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -451,9 +451,16 @@ public class CameraSettings { ListPreference cameraHdr = group.findPreference(KEY_CAMERA_HDR); ListPreference disMode = group.findPreference(KEY_DIS); ListPreference cameraHdrPlus = group.findPreference(KEY_CAMERA_HDR_PLUS); + ListPreference videoHfrMode = + group.findPreference(KEY_VIDEO_HIGH_FRAME_RATE); // Since the screen could be loaded from different resources, we need // to check if the preference is available here + if ((videoHfrMode != null) && + (mParameters.getSupportedHfrSizes() == null)) { + filterUnsupportedOptions(group, videoHfrMode, null); + } + if (videoQuality != null) { filterUnsupportedOptions(group, videoQuality, getSupportedVideoQuality( mCameraId,mParameters)); -- cgit v1.2.3