diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/editors/EditorGrad.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/editors/EditorGrad.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/editors/EditorGrad.java b/src/com/android/gallery3d/filtershow/editors/EditorGrad.java index 4be435f8c..80c430379 100644 --- a/src/com/android/gallery3d/filtershow/editors/EditorGrad.java +++ b/src/com/android/gallery3d/filtershow/editors/EditorGrad.java @@ -191,13 +191,13 @@ public class EditorGrad extends ParametricEditor public ParamAdapter(int seekId, int textId, LinearLayout layout, int mode) { mSlider = (SeekBar) layout.findViewById(seekId); mTextView = (TextView) layout.findViewById(textId); - mSlider.setOnSeekBarChangeListener(this); mSlider.setMax(mMax - mMin); mMode = mode; FilterGradRepresentation rep = getGradRepresentation(); if (rep != null){ updateValues(rep); } + mSlider.setOnSeekBarChangeListener(this); } public void updateValues(FilterGradRepresentation rep) { @@ -428,5 +428,4 @@ public class EditorGrad extends ParametricEditor public void copyFrom(Parameter src) { } - } |