diff options
author | John Hoford <hoford@google.com> | 2013-07-15 17:44:31 -0700 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2013-07-17 18:28:31 +0000 |
commit | 4264520a6a231d42f65168b07e7e793cda7b1a8d (patch) | |
tree | e240fdfbaf86ed80297189b6923a0c708c6dd21e /src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java | |
parent | 9b799fa7ccb6c5c926d13c7265af621b9eca3b33 (diff) | |
download | android_packages_apps_Snap-4264520a6a231d42f65168b07e7e793cda7b1a8d.tar.gz android_packages_apps_Snap-4264520a6a231d42f65168b07e7e793cda7b1a8d.tar.bz2 android_packages_apps_Snap-4264520a6a231d42f65168b07e7e793cda7b1a8d.zip |
remove clone
Change-Id: Ia9f4c1778e06416018eeb07be657bcdd0af1496b
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java index a7efbca20..e5a6fdd23 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterFxRepresentation.java @@ -43,15 +43,19 @@ public class FilterFxRepresentation extends FilterRepresentation { } @Override - public synchronized FilterRepresentation clone() throws CloneNotSupportedException { - FilterFxRepresentation representation = (FilterFxRepresentation) super.clone(); - representation.setName(getName()); - representation.setBitmapResource(getBitmapResource()); - representation.setNameResource(getNameResource()); + public FilterRepresentation copy() { + FilterFxRepresentation representation = new FilterFxRepresentation(getName(),0,0); + copyAllParameters(representation); return representation; } @Override + protected void copyAllParameters(FilterRepresentation representation) { + super.copyAllParameters(representation); + representation.useParametersFrom(this); + } + + @Override public synchronized void useParametersFrom(FilterRepresentation a) { if (a instanceof FilterFxRepresentation) { FilterFxRepresentation representation = (FilterFxRepresentation) a; |