summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-12-01 19:30:58 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-12-01 19:30:58 -0800
commit8af8b215516fdf01a04b2f4a74c879fd8daf0e78 (patch)
tree684c68f6726fa6cab282454bb680e33d33df34c9
parentfc7060a7ad470181d7248b93a111914e9e81a1dd (diff)
parent2cb2c80efaecd1a2b772f9b139618c8191b24cd4 (diff)
downloadLegacyCamera-8af8b215516fdf01a04b2f4a74c879fd8daf0e78.zip
LegacyCamera-8af8b215516fdf01a04b2f4a74c879fd8daf0e78.tar.gz
LegacyCamera-8af8b215516fdf01a04b2f4a74c879fd8daf0e78.tar.bz2
am 2cb2c80e: Fix the bug that video thumbnail is not mirrored in attach mode. do not merge
* commit '2cb2c80efaecd1a2b772f9b139618c8191b24cd4': Fix the bug that video thumbnail is not mirrored in attach mode. do not merge
-rw-r--r--src/com/android/camera/Util.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java
index 560a565..844a75d 100644
--- a/src/com/android/camera/Util.java
+++ b/src/com/android/camera/Util.java
@@ -58,7 +58,7 @@ public class Util {
// Rotates and/or mirrors the bitmap. If a new bitmap is created, the
// original bitmap is recycled.
public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) {
- if (degrees != 0 && b != null) {
+ if ((degrees != 0 || mirror) && b != null) {
Matrix m = new Matrix();
m.setRotate(degrees,
(float) b.getWidth() / 2, (float) b.getHeight() / 2);