OSDN Git Service

Fix 1942091: In image/video preview, the trackball should not move the image
authorChih-Chung Chang <chihchung@google.com>
Thu, 25 Jun 2009 03:31:11 +0000 (11:31 +0800)
committerChih-Chung Chang <chihchung@google.com>
Thu, 25 Jun 2009 03:31:11 +0000 (11:31 +0800)
too much and show black bar.

src/com/android/camera/ImageViewTouchBase.java

index da2f2c3..bc33827 100644 (file)
@@ -161,7 +161,7 @@ abstract class ImageViewTouchBase extends ImageView {
     // view's dimensions then center it (literally).  If the image
     // is scaled larger than the view and is translated out of view
     // then translate it back into view (i.e. eliminate black bars).
-    protected void center(boolean vertical, boolean horizontal) {
+    protected void center(boolean horizontal, boolean vertical) {
         if (mBitmapDisplayed == null) {
             return;
         }