public void hideEditor(UnitEditor editor) { if (editor == null) return; checkState(); if (activeEditor != null && activeEditor.equals(editor)) { editorContainer.setVisibility(View.GONE); } }
public void showEditor(UnitEditor editor) { if (editor == null) return; checkState(); if (activeEditor == null || !activeEditor.equals(editor)) { replaceEditor(editor); } editorContainer.setVisibility(View.VISIBLE); activeEditor = editor; }