OSDN Git Service

Do not copy XMP data if it has TinyPlanet filter
authorJohn Hoford <hoford@google.com>
Mon, 29 Oct 2012 01:35:11 +0000 (18:35 -0700)
committerJohn Hoford <hoford@google.com>
Mon, 29 Oct 2012 01:35:11 +0000 (18:35 -0700)
bug:7429072
Change-Id: I791db8ae8157741eb4cd74e9b6f749275b6b6cc3

src/com/android/gallery3d/filtershow/presets/ImagePreset.java

index 87e1934..8943f30 100644 (file)
@@ -124,6 +124,10 @@ public class ImagePreset {
                     && !filter.isNil()) {
                 return false;
             }
+            if (filter.getFilterType() == ImageFilter.TYPE_TINYPLANET
+                    && !filter.isNil()) {
+                return false;
+            }
         }
         return true;
     }