OSDN Git Service

Set video quality pref default values at startup.
authorSenpo Hu <senpo@google.com>
Tue, 9 Sep 2014 20:51:25 +0000 (13:51 -0700)
committerSenpo Hu <senpo@google.com>
Wed, 10 Sep 2014 00:14:16 +0000 (17:14 -0700)
commit65c00136cde07e050d05e3da61876199df90dd18
tree9bdfdc41c9805053a4c4989b4c8935c2ed9d4df7
parent767a1186a1127f070785d50054a0e1a02975eb4a
Set video quality pref default values at startup.

The problem of the old approach is the default values never got set
until switching on video module.

The caveat of the this CL is that the default value tweak is only applied
for Shamu. Rather than basing on device model string, detecting
CamcorderProfile capability is a better way to get this job done. However,
|CamcorderProfile.hasProfile| needs camera id info so I'd argue this CL
is good enough for the Shamu/L release.

Bug: 17060480
Change-Id: Ia53ff6aecad44fe7a32257fa1415163f167c09bf
src/com/android/camera/VideoModule.java
src/com/android/camera/settings/Keys.java