OSDN Git Service

Temporally solve the overlay creation problem.
authorCheng-Ru Lin <owenlin@google.com>
Fri, 2 Oct 2009 18:05:13 +0000 (02:05 +0800)
committerCheng-Ru Lin <owenlin@google.com>
Fri, 2 Oct 2009 22:47:11 +0000 (06:47 +0800)
commit542fa8916296196b10d74b439304bd7fc5bf1cef
tree5ad8ea929363cb5bd8f71abae0bcd874a93ffd92
parent7ee55b673e2dc579bd3e904240f71a24402dae1f
Temporally solve the overlay creation problem.

Fix bug:  http://b/issue?id=2153980

Because of bugs of overlay and layout, we sometimes will try to layout the
viewfinder in the portrait orientation and thus get the wrong size of
mSurfaceView. When we cange the size of preview size the new overlay will be
created before the old one closed, and cause an exception. For now, just get
the screen size

Change-Id: I3daf4bce801507aaaca1f030f09d6e18cb23f0f2
src/com/android/camera/Camera.java