Search in sources :

Example 1 with DeletePostEvent

use of com.android.example.devsummit.archdemo.event.post.DeletePostEvent in project dev-summit-architecture-demo by yigit.

the class SaveNewPostJob method onCancel.

@Override
protected void onCancel() {
    Post post = mPostModel.loadByClientIdAndUserId(mClientId, mUserId);
    if (post != null) {
        mPostModel.delete(post);
    }
    mEventBus.post(new DeletePostEvent(true, mText, post));
}
Also used : Post(com.android.example.devsummit.archdemo.vo.Post) DeletePostEvent(com.android.example.devsummit.archdemo.event.post.DeletePostEvent)

Aggregations

DeletePostEvent (com.android.example.devsummit.archdemo.event.post.DeletePostEvent)1 Post (com.android.example.devsummit.archdemo.vo.Post)1