OSDN Git Service
(root)
/
android-x86
/
packages-apps-Gallery2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix crash on applying borders
[android-x86/packages-apps-Gallery2.git]
/
src
/
com
/
android
/
gallery3d
/
filtershow
/
presets
/
ImagePreset.java
diff --git
a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
index
ae5a034
..
752f72d
100644
(file)
--- a/
src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/
src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@
-428,6
+428,9
@@
public class ImagePreset {
if (mGeoData.hasModifications()) {
return false;
}
+ if (mBorder != null && !mBorder.supportsPartialRendering()) {
+ return false;
+ }
for (int i = 0; i < mFilters.size(); i++) {
FilterRepresentation representation = null;
synchronized (mFilters) {