diff options
author | Jun Su <juns@nvidia.com> | 2014-02-23 14:13:14 +0800 |
---|---|---|
committer | Jun Su <juns@nvidia.com> | 2014-02-23 14:29:24 +0800 |
commit | 0df318162173a98f703f7711692ea4773b461423 (patch) | |
tree | 143c74424fbef4ca8df8944b179802842da697cb /src/com/android/gallery3d/filtershow/filters | |
parent | e9c89c814c97a74456ad1bf8d4c32a983663924c (diff) | |
download | android_packages_apps_Gallery2-0df318162173a98f703f7711692ea4773b461423.tar.gz android_packages_apps_Gallery2-0df318162173a98f703f7711692ea4773b461423.tar.bz2 android_packages_apps_Gallery2-0df318162173a98f703f7711692ea4773b461423.zip |
Use basic editor for sharpen filter.
Currently gallery's sharpen filter is relate to the editor id =
R.id.imageShow, which is not point to any valid editor.
As a result native gallery sharpen function will cause exception and fail.
Change to use basic editor.
Change-Id: I2a04ab81c395e12004cd6fe4635932a19c1c39be
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterSharpen.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterSharpen.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterSharpen.java index 3bd794464..418afc40f 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterSharpen.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterSharpen.java @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.filters; import com.android.gallery3d.R; +import com.android.gallery3d.filtershow.editors.BasicEditor; public class ImageFilterSharpen extends ImageFilterRS { private static final String SERIALIZATION_NAME = "SHARPEN"; @@ -36,7 +37,7 @@ public class ImageFilterSharpen extends ImageFilterRS { representation.setFilterClass(ImageFilterSharpen.class); representation.setTextId(R.string.sharpness); representation.setOverlayId(R.drawable.filtershow_button_colors_sharpen); - representation.setEditorId(R.id.imageShow); + representation.setEditorId(BasicEditor.ID); representation.setSupportsPartialRendering(true); return representation; } |