summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorChristopher R. Palmer <crpalmer@gmail.com>2016-01-14 05:17:44 -0500
committerBruno Martins <bgcngm@gmail.com>2018-11-20 12:31:35 +0000
commit19eb28155d431413cd83227001028d269771962b (patch)
treec1f080c1d3fc62bb188c547579fae5b864c0f9d0 /src/com/android/camera/VideoModule.java
parent32c6299ffa11d07022bcd0879ccd09016cae41ac (diff)
downloadandroid_packages_apps_Snap-19eb28155d431413cd83227001028d269771962b.tar.gz
android_packages_apps_Snap-19eb28155d431413cd83227001028d269771962b.tar.bz2
android_packages_apps_Snap-19eb28155d431413cd83227001028d269771962b.zip
Snap: Actually select the highest quality video by default
Prior to this commit Snap assumes that the HAL returns the list of supported video sizes in descending order of quality and simply picks the first one from the list as the default quality. Instead, find the first matching entry of pref_video_quality_entryvalues that the HAL indicated was supported. Change-Id: Ifea79e0e16a9015557539e098317536a32b9ff1f
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 a04dc3027..4c615bdb6 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -885,7 +885,7 @@ public class VideoModule implements CameraModule,
} else {
// check for highest quality supported
videoQuality = CameraSettings.getSupportedHighestVideoQuality(
- mCameraId, mParameters);
+ mActivity, mCameraId, mParameters);
}
mPreferences.edit().putString(CameraSettings.KEY_VIDEO_QUALITY, videoQuality).apply();
}