@Override public void deleteEditor() { // Keep around in model, but mark as deleted mEntry.markDeleted(); // Remove the view EditorAnimator.getInstance().removeEditorView(this); }
protected void updateAddFooterVisible(boolean animate) { if (!mReadOnly && (mKind.typeOverallMax != 1)) { // First determine whether there are any existing empty editors. updateEmptyEditors(); // If there are no existing empty editors and it's possible to add // another field, then make the "add footer" field visible. if (!hasEmptyEditor() && RawContactModifier.canInsert(mState, mKind)) { if (animate) { EditorAnimator.getInstance().showAddFieldFooter(mAddFieldFooter); } else { mAddFieldFooter.setVisibility(View.VISIBLE); } return; } } if (animate) { EditorAnimator.getInstance().hideAddFieldFooter(mAddFieldFooter); } else { mAddFieldFooter.setVisibility(View.GONE); } }