pass message when key added

This commit is contained in:
Ashley Hughes 2014-02-06 14:33:29 +00:00
parent d6726fe9d6
commit 53dc044ab4

View File

@ -168,6 +168,9 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
view.setEditorListener(this); view.setEditorListener(this);
view.setValue("", mEditors.getChildCount() == 0, true); view.setValue("", mEditors.getChildCount() == 0, true);
mEditors.addView(view); mEditors.addView(view);
if (mEditorListener != null) {
mEditorListener.onEdited();
}
break; break;
} }
@ -367,5 +370,8 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
view.setValue(newKey, newKey.isMasterKey(), -1, true); view.setValue(newKey, newKey.isMasterKey(), -1, true);
mEditors.addView(view); mEditors.addView(view);
SectionView.this.updateEditorsVisible(); SectionView.this.updateEditorsVisible();
if (mEditorListener != null) {
mEditorListener.onEdited();
}
} }
} }