diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2013-06-03 15:41:36 -0700 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2013-06-05 10:50:46 -0700 |
commit | 17fbd7949abfd2dee5b15e443611c56dac2d6ef3 (patch) | |
tree | a44c2c219a66d91bc725b677c350f7716ab34f21 /src/com/android/gallery3d/filtershow/presets | |
parent | 8ce743f577b2056519fd8e74da272c461ff74e33 (diff) | |
download | android_packages_apps_Snap-17fbd7949abfd2dee5b15e443611c56dac2d6ef3.tar.gz android_packages_apps_Snap-17fbd7949abfd2dee5b15e443611c56dac2d6ef3.tar.bz2 android_packages_apps_Snap-17fbd7949abfd2dee5b15e443611c56dac2d6ef3.zip |
Removing unused UI fields in FilterRepresentation.
Bug: 9170644
Change-Id: Ic197123286e06d9eb64d30eb345f8cc5797659a2
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets')
-rw-r--r-- | src/com/android/gallery3d/filtershow/presets/ImagePreset.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java index 84766958d..f06e048a2 100644 --- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java +++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java @@ -218,11 +218,11 @@ public class ImagePreset { return false; } for (FilterRepresentation representation : mFilters) { - if (representation.getPriority() == FilterRepresentation.TYPE_VIGNETTE + if (representation.getFilterType() == FilterRepresentation.TYPE_VIGNETTE && !representation.isNil()) { return false; } - if (representation.getPriority() == FilterRepresentation.TYPE_TINYPLANET + if (representation.getFilterType() == FilterRepresentation.TYPE_TINYPLANET && !representation.isNil()) { return false; } @@ -380,7 +380,7 @@ public class ImagePreset { } public void removeFilter(FilterRepresentation filterRepresentation) { - if (filterRepresentation.getPriority() == FilterRepresentation.TYPE_BORDER) { + if (filterRepresentation.getFilterType() == FilterRepresentation.TYPE_BORDER) { setBorder(null); setHistoryName("Remove"); return; @@ -399,13 +399,13 @@ public class ImagePreset { setGeometry((GeometryMetadata) representation); return; } - if (representation.getPriority() == FilterRepresentation.TYPE_BORDER) { + if (representation.getFilterType() == FilterRepresentation.TYPE_BORDER) { setHistoryName(representation.getName()); setBorder(representation); - } else if (representation.getPriority() == FilterRepresentation.TYPE_FX) { + } else if (representation.getFilterType() == FilterRepresentation.TYPE_FX) { boolean found = false; for (int i = 0; i < mFilters.size(); i++) { - int type = mFilters.elementAt(i).getPriority(); + int type = mFilters.elementAt(i).getFilterType(); if (found) { if (type != FilterRepresentation.TYPE_VIGNETTE) { mFilters.remove(i); |