OSDN Git Service

Fix the wrong rotation on naturally landscape devices.
authorWu-cheng Li <wuchengli@google.com>
Fri, 10 Sep 2010 19:48:00 +0000 (12:48 -0700)
committerWu-cheng Li <wuchengli@google.com>
Wed, 15 Sep 2010 16:21:49 +0000 (09:21 -0700)
commit4aaa2130af7241f128ee561cafd17a4fb560b92c
tree0d92d61f352c0605a2fdaa63c909e4f2edd3a55d
parent8eaa6919f0d5c10c95c99f2f937d57ea5c4a5bba
Fix the wrong rotation on naturally landscape devices.

The orientation of on-screen icons and thumbnails are
wrong on devices that are naturally landscape in their
orientation. Display.getRotation should be used to
compensate.

Parameters.setRotation should also be compensated by
camera's orientation.

Change-Id: Ia0684fcd606252c49fa2d701ab07c73f7e29b70b
src/com/android/camera/Camera.java
src/com/android/camera/ImageManager.java
src/com/android/camera/Util.java
tests/src/com/android/camera/UnitTests.java
tests/src/com/android/camera/unittest/CameraTest.java [new file with mode: 0644]