OSDN Git Service

fix tiny planet launch
authorJohn Hoford <hoford@google.com>
Wed, 14 Aug 2013 22:49:29 +0000 (15:49 -0700)
committerJohn Hoford <hoford@google.com>
Wed, 14 Aug 2013 22:49:29 +0000 (15:49 -0700)
bug:8732041
Change-Id: Id874e7e6f9ebc13f740e924e532512e7aadb26dd

src/com/android/gallery3d/filtershow/filters/FilterTinyPlanetRepresentation.java

index be18129..4f7bc6a 100644 (file)
@@ -34,6 +34,7 @@ public class FilterTinyPlanetRepresentation extends FilterBasicRepresentation {
         setTextId(R.string.tinyplanet);
         setEditorId(EditorTinyPlanet.ID);
         setMinimum(1);
+        setSupportsPartialRendering(false);
     }
 
     @Override
@@ -78,6 +79,16 @@ public class FilterTinyPlanetRepresentation extends FilterBasicRepresentation {
         return false;
     }
 
+    public boolean equals(FilterRepresentation representation) {
+        if (!super.equals(representation)) {
+            return false;
+        }
+        if (mAngle == ((FilterTinyPlanetRepresentation) representation).mAngle) {
+            return true;
+        }
+        return false;
+    }
+
     @Override
     public String[][] serializeRepresentation() {
         String[][] ret = {