Loading src/com/android/gallery3d/filtershow/FilterShowActivity.java +1 −0 Original line number Diff line number Diff line Loading @@ -596,6 +596,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL ImagePreset copy = new ImagePreset(oldPreset); FilterRepresentation representation = copy.getRepresentation(filterRepresentation); if (representation == null) { filterRepresentation = filterRepresentation.copy(); copy.addFilter(filterRepresentation); } else if (filterRepresentation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY) { representation.useParametersFrom(filterRepresentation); Loading src/com/android/gallery3d/filtershow/filters/FilterVignetteRepresentation.java +5 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,11 @@ public class FilterVignetteRepresentation extends FilterBasicRepresentation impl mRadiusY = ((FilterVignetteRepresentation) a).mRadiusY; } @Override public String toString() { return getName() + " : " + mCenterX + ", " + mCenterY + " radius: " + mRadiusX; } @Override public FilterRepresentation copy() { FilterVignetteRepresentation representation = new FilterVignetteRepresentation(); Loading src/com/android/gallery3d/filtershow/history/HistoryItem.java +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ public class HistoryItem { private Bitmap mPreviewImage; public HistoryItem(ImagePreset preset, FilterRepresentation representation) { mImagePreset = new ImagePreset(preset); mImagePreset = preset; // just keep a pointer to the current preset if (representation != null) { mFilterRepresentation = representation.copy(); } Loading Loading
src/com/android/gallery3d/filtershow/FilterShowActivity.java +1 −0 Original line number Diff line number Diff line Loading @@ -596,6 +596,7 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL ImagePreset copy = new ImagePreset(oldPreset); FilterRepresentation representation = copy.getRepresentation(filterRepresentation); if (representation == null) { filterRepresentation = filterRepresentation.copy(); copy.addFilter(filterRepresentation); } else if (filterRepresentation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY) { representation.useParametersFrom(filterRepresentation); Loading
src/com/android/gallery3d/filtershow/filters/FilterVignetteRepresentation.java +5 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,11 @@ public class FilterVignetteRepresentation extends FilterBasicRepresentation impl mRadiusY = ((FilterVignetteRepresentation) a).mRadiusY; } @Override public String toString() { return getName() + " : " + mCenterX + ", " + mCenterY + " radius: " + mRadiusX; } @Override public FilterRepresentation copy() { FilterVignetteRepresentation representation = new FilterVignetteRepresentation(); Loading
src/com/android/gallery3d/filtershow/history/HistoryItem.java +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ public class HistoryItem { private Bitmap mPreviewImage; public HistoryItem(ImagePreset preset, FilterRepresentation representation) { mImagePreset = new ImagePreset(preset); mImagePreset = preset; // just keep a pointer to the current preset if (representation != null) { mFilterRepresentation = representation.copy(); } Loading