OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf3d70d
)
Fix http://b/2140611 by adjusting the width of the preview view when video quality...
author
Wei-Ta Chen
<weita@google.com>
Thu, 24 Sep 2009 22:01:53 +0000
(15:01 -0700)
committer
Wei-Ta Chen
<weita@google.com>
Thu, 24 Sep 2009 22:35:14 +0000
(15:35 -0700)
The preview view's aspect ratio should be the same to that of the preview frame.
src/com/android/camera/VideoCamera.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/VideoCamera.java
b/src/com/android/camera/VideoCamera.java
index
9582323
..
3809517
100644
(file)
--- a/
src/com/android/camera/VideoCamera.java
+++ b/
src/com/android/camera/VideoCamera.java
@@
-1409,6
+1409,8
@@
public class VideoCamera extends Activity implements View.OnClickListener,
// It is assumed media recorder is released before
// onSharedPreferenceChanged, so we can close the camera here.
closeCamera();
+ resizeForPreviewAspectRatio(mVideoPreview);
+ resizeForPreviewAspectRatio(mVideoFrame);
try {
startPreview(); // Parameters will be set in startPreview().
} catch (CameraHardwareException e) {