commit | c59d1a8f0ccbf8d95c8f29cfe9d955d081807fc9 | [log] [tgz] |
---|---|---|
author | Wu-cheng Li <wuchengli@google.com> | Wed Mar 14 17:25:57 2012 +0800 |
committer | Wu-cheng Li <wuchengli@google.com> | Mon Mar 19 13:54:15 2012 +0800 |
tree | 0071f65341c4093d4a969f74ee2bf170d42085d9 | |
parent | d85d590ed3624531493d874cdabf4d34a3db922f [diff] |
Do not set camera preview display if the surface is null. MediaRecorder.setPreviewDisplay() is not required if applications use MediaRecorder.setCamera(). Besides, this causes a problem when apps use Camera.setPreviewTexture. Camera service thinks the surface texture from Camera.setPreviewTexture and the surface from MediaRecorder.setPreviewDisplay are different. bug:5988937 Change-Id: Ia345705b6679ef349db6e354feaa3cc0fe8bcd8c