OSDN Git Service

Fix the bug that video thumbnail is not mirrored in attach mode. do not merge
authorWu-cheng Li <wuchengli@google.com>
Thu, 18 Nov 2010 03:55:29 +0000 (11:55 +0800)
committerWu-cheng Li <wuchengli@google.com>
Wed, 1 Dec 2010 06:57:27 +0000 (14:57 +0800)
bug:3208306
Change-Id: Ib0c0a873a797a8a0e03f30897d087d0ddcb1c315

src/com/android/camera/Util.java

index 560a565..844a75d 100644 (file)
@@ -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);