OSDN Git Service

Changed rotated display parameter increments to 90.
authorRuben Brunk <rubenbrunk@google.com>
Fri, 26 Oct 2012 20:48:09 +0000 (13:48 -0700)
committerRuben Brunk <rubenbrunk@google.com>
Fri, 26 Oct 2012 20:53:53 +0000 (13:53 -0700)
Bug: 7393432
Change-Id: Id94a28c88cc06a7d99aab0d01dae4fc59cefbab2

src/com/android/gallery3d/filtershow/imageshow/ImageRotate.java

index 90bbeaa..a4131ff 100644 (file)
@@ -75,7 +75,7 @@ public class ImageRotate extends ImageGeometry {
 
     @Override
     protected int getLocalValue() {
-        return (int) getLocalRotation();
+        return constrainedRotation(snappedAngle(getLocalRotation()));
     }
 
     @Override