summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor/EffectsBar.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/photoeditor/EffectsBar.java')
-rw-r--r--src/com/android/gallery3d/photoeditor/EffectsBar.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/photoeditor/EffectsBar.java b/src/com/android/gallery3d/photoeditor/EffectsBar.java
index 40754040c..1aafc4e5d 100644
--- a/src/com/android/gallery3d/photoeditor/EffectsBar.java
+++ b/src/com/android/gallery3d/photoeditor/EffectsBar.java
@@ -92,6 +92,7 @@ public class EffectsBar extends LinearLayout {
activeEffect = effect;
exitEffectsGallery();
// Create effect tool panel first before the factory could create tools within.
+ // TODO: Refactor to encapsulate effect-tool panel in effect-tool factory.
createEffectToolPanel();
activeEffect.begin(filterStack,
new EffectToolFactory(effectToolPanel, inflater));
@@ -134,11 +135,6 @@ public class EffectsBar extends LinearLayout {
@Override
public void run() {
SpinnerProgressDialog.dismissDialog();
- View fullscreenTool = getRootView().findViewById(R.id.fullscreen_effect_tool);
- if (fullscreenTool != null) {
- ((ViewGroup) fullscreenTool.getParent()).removeView(fullscreenTool);
- }
- removeView(effectToolPanel);
effectToolPanel = null;
activeEffect = null;
if (runnableOnDone != null) {