summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/gallery3d/filtershow/PanelController.java4
-rw-r--r--src/com/android/gallery3d/filtershow/editors/Editor.java5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/PanelController.java b/src/com/android/gallery3d/filtershow/PanelController.java
index f29765a35..1d0118f85 100644
--- a/src/com/android/gallery3d/filtershow/PanelController.java
+++ b/src/com/android/gallery3d/filtershow/PanelController.java
@@ -359,7 +359,6 @@ public class PanelController implements OnClickListener {
if (mCurrentEditor != null) {
mCurrentEditor.reflectCurrentFilter();
}
-
}
}
@@ -590,6 +589,9 @@ public class PanelController implements OnClickListener {
mUtilityPanel.showMenu(false);
if (view instanceof FilterIconButton) {
+ if (mCurrentEditor != null) {
+ mCurrentEditor.detach();
+ }
mCurrentEditor = null;
FilterIconButton component = (FilterIconButton) view;
FilterRepresentation representation = component.getFilterRepresentation();
diff --git a/src/com/android/gallery3d/filtershow/editors/Editor.java b/src/com/android/gallery3d/filtershow/editors/Editor.java
index 4fb86cb63..036745d3c 100644
--- a/src/com/android/gallery3d/filtershow/editors/Editor.java
+++ b/src/com/android/gallery3d/filtershow/editors/Editor.java
@@ -81,7 +81,6 @@ public class Editor implements OnSeekBarChangeListener, SwapButton.SwapButtonLis
return mID;
}
-
public byte showParameterValue() {
return mShowParameter;
}
@@ -271,4 +270,8 @@ public class Editor implements OnSeekBarChangeListener, SwapButton.SwapButtonLis
public void swapRight(MenuItem item) {
}
+
+ public void detach() {
+
+ }
}