Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7668544e authored by nicolasroard's avatar nicolasroard
Browse files

Detach old editor

Change-Id: I1b0a30aa334a83011d9f03ea629e1b0f36ea21d2
parent 8eb8dd6b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();
+4 −1
Original line number Diff line number Diff line
@@ -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() {

    }
}