From c933e377fb581626daaf9f925a361c41e05307db Mon Sep 17 00:00:00 2001 From: kaiyiz Date: Thu, 20 Nov 2014 17:56:42 +0800 Subject: 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 --- src/com/android/gallery3d/filtershow/pipeline/ImagePreset.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com') 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; } } -- cgit v1.2.3