Search in sources :

Example 1 with BroadcastCommentSendErrorEvent

use of me.zhanghai.android.douya.eventbus.BroadcastCommentSendErrorEvent in project Douya by DreaminginCodeZH.

the class SendBroadcastCommentWriter method onErrorResponse.

@Override
public void onErrorResponse(VolleyError error) {
    LogUtils.e(error.toString());
    Context context = getContext();
    ToastUtils.show(context.getString(R.string.broadcast_send_comment_failed_format, ApiError.getErrorString(error, context)), context);
    EventBusUtils.postAsync(new BroadcastCommentSendErrorEvent(mBroadcastId, this));
    stopSelf();
}
Also used : Context(android.content.Context) BroadcastCommentSendErrorEvent(me.zhanghai.android.douya.eventbus.BroadcastCommentSendErrorEvent)

Example 2 with BroadcastCommentSendErrorEvent

use of me.zhanghai.android.douya.eventbus.BroadcastCommentSendErrorEvent in project Douya by DreaminginCodeZH.

the class SendBroadcastCommentWriter method onErrorResponse.

@Override
public void onErrorResponse(ApiError error) {
    LogUtils.e(error.toString());
    Context context = getContext();
    ToastUtils.show(context.getString(R.string.broadcast_send_comment_failed_format, ApiError.getErrorString(error, context)), context);
    EventBusUtils.postAsync(new BroadcastCommentSendErrorEvent(mBroadcastId, this));
    stopSelf();
}
Also used : Context(android.content.Context) BroadcastCommentSendErrorEvent(me.zhanghai.android.douya.eventbus.BroadcastCommentSendErrorEvent)

Aggregations

Context (android.content.Context)2 BroadcastCommentSendErrorEvent (me.zhanghai.android.douya.eventbus.BroadcastCommentSendErrorEvent)2