OSDN Git Service

Reset aspect ratio on pause
authorAlan Newberger <alann@google.com>
Wed, 10 Sep 2014 22:03:27 +0000 (15:03 -0700)
committerAlan Newberger <alann@google.com>
Thu, 11 Sep 2014 00:23:19 +0000 (17:23 -0700)
commit7351415ddfaf7f563a4a12c9204e6feb20fdf49d
tree5ec046a46b0b5c3df488da093579419e391372cd
parent87a2300ff2b49b8bd6a69815d1e4f3db477fcf4d
Reset aspect ratio on pause

When resuming the app we do resize things but the old aspect
ratio is cached, thus skipping a reset of the transform matrices
because the app thinks it is already at the correct aspect ratio.
In certain cases (changing orientation when paused) this leads to
layout bugs.

Bug: 17304671
Change-Id: Ia171190b3c76dc05519bdf4d1947d9664d5fb604
src/com/android/camera/PhotoModule.java
src/com/android/camera/PhotoUI.java
src/com/android/camera/TextureViewHelper.java
src/com/android/camera/VideoModule.java
src/com/android/camera/VideoUI.java