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));
}
Aggregations