Пример #1
0
 public void hideEditor(UnitEditor editor) {
   if (editor == null) return;
   checkState();
   if (activeEditor != null && activeEditor.equals(editor)) {
     editorContainer.setVisibility(View.GONE);
   }
 }
Пример #2
0
 public void showEditor(UnitEditor editor) {
   if (editor == null) return;
   checkState();
   if (activeEditor == null || !activeEditor.equals(editor)) {
     replaceEditor(editor);
   }
   editorContainer.setVisibility(View.VISIBLE);
   activeEditor = editor;
 }