diff options
author | Ruben Brunk <rubenbrunk@google.com> | 2013-06-03 15:41:36 -0700 |
---|---|---|
committer | Ruben Brunk <rubenbrunk@google.com> | 2013-06-05 10:50:46 -0700 |
commit | 3cb106ddd7ad0f8494ac9c7a33660831c1694295 (patch) | |
tree | f7c5c5e6ccb97e57a2be8893f9bd379bd758be70 /src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java | |
parent | f6cf61b84b96bdb9598e2926aba34eeb648d2213 (diff) | |
download | android_packages_apps_Gallery2-3cb106ddd7ad0f8494ac9c7a33660831c1694295.tar.gz android_packages_apps_Gallery2-3cb106ddd7ad0f8494ac9c7a33660831c1694295.tar.bz2 android_packages_apps_Gallery2-3cb106ddd7ad0f8494ac9c7a33660831c1694295.zip |
Removing unused UI fields in FilterRepresentation.
Bug: 9170644
Change-Id: Ic197123286e06d9eb64d30eb345f8cc5797659a2
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java b/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java index 3bb60bb74..701fabba7 100644 --- a/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java +++ b/src/com/android/gallery3d/filtershow/filters/FilterRepresentation.java @@ -31,9 +31,7 @@ public class FilterRepresentation implements Cloneable { private int mButtonId = 0; private int mOverlayId = 0; private boolean mOverlayOnly = false; - private boolean mShowEditingControls = true; private boolean mShowParameterValue = true; - private boolean mShowUtilityPanel = true; private String mSerializationName; public static final byte TYPE_BORDER = 1; public static final byte TYPE_FX = 2; @@ -52,17 +50,14 @@ public class FilterRepresentation implements Cloneable { public FilterRepresentation clone() throws CloneNotSupportedException { FilterRepresentation representation = (FilterRepresentation) super.clone(); representation.setName(getName()); - representation.setPriority(getPriority()); representation.setFilterClass(getFilterClass()); + representation.setFilterType(getFilterType()); representation.setSupportsPartialRendering(supportsPartialRendering()); representation.setTextId(getTextId()); representation.setEditorId(getEditorId()); - representation.setButtonId(getButtonId()); representation.setOverlayId(getOverlayId()); representation.setOverlayOnly(getOverlayOnly()); - representation.setShowEditingControls(showEditingControls()); representation.setShowParameterValue(showParameterValue()); - representation.setShowUtilityPanel(showUtilityPanel()); representation.mSerializationName = mSerializationName; representation.mTempRepresentation = @@ -86,22 +81,17 @@ public class FilterRepresentation implements Cloneable { && representation.mButtonId == mButtonId && representation.mOverlayId == mOverlayId && representation.mOverlayOnly == mOverlayOnly - && representation.mShowEditingControls == mShowEditingControls - && representation.mShowParameterValue == mShowParameterValue - && representation.mShowUtilityPanel == mShowUtilityPanel) { + && representation.mShowParameterValue == mShowParameterValue) { return true; } return false; } + @Override public String toString() { return mName; } - public void setScrName(String name) { - mName = name; - } - public void setName(String name) { mName = name; } @@ -118,11 +108,11 @@ public class FilterRepresentation implements Cloneable { return mSerializationName; } - public void setPriority(int priority) { + public void setFilterType(int priority) { mPriority = priority; } - public int getPriority() { + public int getFilterType() { return mPriority; } @@ -190,14 +180,6 @@ public class FilterRepresentation implements Cloneable { mTextId = textId; } - public int getButtonId() { - return mButtonId; - } - - public void setButtonId(int buttonId) { - mButtonId = buttonId; - } - public int getOverlayId() { return mOverlayId; } @@ -227,14 +209,6 @@ public class FilterRepresentation implements Cloneable { mEditorId = editorId; } - public boolean showEditingControls() { - return mShowEditingControls; - } - - public void setShowEditingControls(boolean showEditingControls) { - mShowEditingControls = showEditingControls; - } - public boolean showParameterValue() { return mShowParameterValue; } @@ -243,14 +217,6 @@ public class FilterRepresentation implements Cloneable { mShowParameterValue = showParameterValue; } - public boolean showUtilityPanel() { - return mShowUtilityPanel; - } - - public void setShowUtilityPanel(boolean showUtilityPanel) { - mShowUtilityPanel = showUtilityPanel; - } - public String getStateRepresentation() { return ""; } |