diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-11-20 17:56:42 +0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2014-12-15 15:00:14 -0800 |
commit | a209c6cc5dfd3b1d06dedab8e09a7bf3b370085a (patch) | |
tree | 3c0e6c8c4b69965dc6a2bb8a21b31045fc9e9cfe | |
parent | b5e917092a743a2195e287e9fb648ff0578eb125 (diff) | |
download | android_packages_apps_Gallery2-a209c6cc5dfd3b1d06dedab8e09a7bf3b370085a.tar.gz android_packages_apps_Gallery2-a209c6cc5dfd3b1d06dedab8e09a7bf3b370085a.tar.bz2 android_packages_apps_Gallery2-a209c6cc5dfd3b1d06dedab8e09a7bf3b370085a.zip |
Gallery2: Change method for Filter compare
The method of 'same' compare the class between two FilterRepresentation,
and the method of 'equal' compare everything between two FilterRepresentation.
Since two border have the same class of 'ImageFilterBorder', they are
considered no diff in method of 'same'.
Change the method 'same' to 'equal'.
CRs-Fixed: 759358
Change-Id: I80dda9295555181d70c90bd893ea2c3efb7d41e3
-rw-r--r-- | src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java b/src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java index 4765a5990..844a8fb16 100644 --- a/src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java +++ b/src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java @@ -237,7 +237,7 @@ public class ImagePreset { FilterRepresentation a = preset.mFilters.elementAt(i); FilterRepresentation b = mFilters.elementAt(i); - if (!a.same(b)) { + if (!a.equals(b)) { return false; } } |