OSDN Git Service

Fix ambiguous naming and typo
authorztenghui <ztenghui@google.com>
Wed, 26 Jun 2013 20:54:17 +0000 (13:54 -0700)
committerztenghui <ztenghui@google.com>
Wed, 26 Jun 2013 20:54:17 +0000 (13:54 -0700)
bug:9468909
Change-Id: Ic52f3b6f6b5d0c874e8291ce7b3a76cb6c22f60f

src/com/android/gallery3d/filtershow/FilterShowActivity.java
src/com/android/gallery3d/filtershow/filters/FilterColorBorderRepresentation.java
src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java
src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java
src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java

index 289a4c3..2ac7e98 100644 (file)
@@ -447,7 +447,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL
         if (representation == null) {
             copy.addFilter(filterRepresentation);
         } else {
-            if (filterRepresentation.allowsMultipleInstances()) {
+            if (filterRepresentation.allowsSingleInstanceOnly()) {
                 representation.updateTempParametersFrom(filterRepresentation);
                 copy.setHistoryName(filterRepresentation.getName());
                 representation.synchronizeRepresentation();
index 99e1edf..d9e2117 100644 (file)
@@ -76,7 +76,7 @@ public class FilterColorBorderRepresentation extends FilterRepresentation {
         return false;
     }
 
-    public boolean allowsMultipleInstances() {
+    public boolean allowsSingleInstanceOnly() {
         return true;
     }
 
index abe69d1..a7efbca 100644 (file)
@@ -86,7 +86,7 @@ public class FilterFxRepresentation extends FilterRepresentation {
     }
 
     @Override
-    public boolean allowsMultipleInstances() {
+    public boolean allowsSingleInstanceOnly() {
         return true;
     }
 
index d790d3e..c32f7cc 100644 (file)
@@ -71,7 +71,7 @@ public class FilterImageBorderRepresentation extends FilterRepresentation {
         return R.string.none;
     }
 
-    public boolean allowsMultipleInstances() {
+    public boolean allowsSingleInstanceOnly() {
         return true;
     }
 
index 9d103d5..b192b5a 100644 (file)
@@ -73,7 +73,7 @@ public class FilterRepresentation implements Cloneable {
         if (representation == null) {
             return false;
         }
-        if (representation.mFilterClass == representation.mFilterClass
+        if (representation.mFilterClass == mFilterClass
                 && representation.mName.equalsIgnoreCase(mName)
                 && representation.mPriority == mPriority
                 && representation.mSupportsPartialRendering == mSupportsPartialRendering
@@ -154,7 +154,7 @@ public class FilterRepresentation implements Cloneable {
         }
     }
 
-    public boolean allowsMultipleInstances() {
+    public boolean allowsSingleInstanceOnly() {
         return false;
     }