summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-07-15 17:44:31 -0700
committerJohn Hoford <hoford@google.com>2013-07-17 18:28:31 +0000
commit4264520a6a231d42f65168b07e7e793cda7b1a8d (patch)
treee240fdfbaf86ed80297189b6923a0c708c6dd21e /src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java
parent9b799fa7ccb6c5c926d13c7265af621b9eca3b33 (diff)
downloadandroid_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/FilterImageBorderRepresentation.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java
index c32f7ccdc..f310a2be1 100644
--- a/src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java
+++ b/src/com/android/gallery3d/filtershow/filters/FilterImageBorderRepresentation.java
@@ -37,13 +37,19 @@ public class FilterImageBorderRepresentation extends FilterRepresentation {
}
@Override
- public FilterRepresentation clone() throws CloneNotSupportedException {
- FilterImageBorderRepresentation representation = (FilterImageBorderRepresentation) super.clone();
- representation.setName(getName());
- representation.setDrawableResource(getDrawableResource());
+ public FilterRepresentation copy() {
+ FilterImageBorderRepresentation representation =
+ new FilterImageBorderRepresentation(mDrawableResource);
+ copyAllParameters(representation);
return representation;
}
+ @Override
+ protected void copyAllParameters(FilterRepresentation representation) {
+ super.copyAllParameters(representation);
+ representation.useParametersFrom(this);
+ }
+
public void useParametersFrom(FilterRepresentation a) {
if (a instanceof FilterImageBorderRepresentation) {
FilterImageBorderRepresentation representation = (FilterImageBorderRepresentation) a;