Search in sources :

Example 1 with SimpleBackActivity

use of org.kymjs.blog.ui.SimpleBackActivity in project KJFrameForAndroid by kymjs.

the class NoteEditFragment method initData.

@Override
public void initData() {
    Bundle bundle = ((SimpleBackActivity) getActivity()).getBundleData();
    if (bundle != null) {
        editData = (NotebookData) bundle.getSerializable(NOTE_KEY);
    }
    kjdb = KJDB.create(outsideAty, true);
    if (editData == null) {
        editData = new NotebookData();
    }
    if (StringUtils.isEmpty(editData.getDate())) {
        editData.setDate(StringUtils.getDataTime("yyyy/MM/dd"));
    }
}
Also used : NotebookData(org.kymjs.blog.domain.NotebookData) Bundle(android.os.Bundle) SimpleBackActivity(org.kymjs.blog.ui.SimpleBackActivity)

Aggregations

Bundle (android.os.Bundle)1 NotebookData (org.kymjs.blog.domain.NotebookData)1 SimpleBackActivity (org.kymjs.blog.ui.SimpleBackActivity)1