summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2014-11-20 17:56:42 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-12-05 05:27:21 -0800
commitc933e377fb581626daaf9f925a361c41e05307db (patch)
treee9968f75d79872a623006bd5b92394e10cc7b486 /src
parent9897fb2d0072f942520b312514c85de7d43d8dd2 (diff)
downloadandroid_packages_apps_Gallery2-c933e377fb581626daaf9f925a361c41e05307db.tar.gz
android_packages_apps_Gallery2-c933e377fb581626daaf9f925a361c41e05307db.tar.bz2
android_packages_apps_Gallery2-c933e377fb581626daaf9f925a361c41e05307db.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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java2
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;
}
}