StatisticsProtocol改为interface
This commit is contained in:
@@ -359,7 +359,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
||||
if (reason == null) return;
|
||||
//加入黑名单,踢出房间回调
|
||||
ChatRoomKickOutEvent.ChatRoomKickOutReason reasonReason = reason.getReason();
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.Event.USER_KICKED_EVENT, "用户被踢");
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.USER_KICKED_EVENT, "用户被踢");
|
||||
if (reasonReason == ChatRoomKickOutEvent.ChatRoomKickOutReason.BE_BLACKLISTED
|
||||
|| reasonReason == ChatRoomKickOutEvent.ChatRoomKickOutReason.KICK_OUT_BY_MANAGER
|
||||
|| reasonReason == ChatRoomKickOutEvent.ChatRoomKickOutReason.KICK_OUT_BY_CONFLICT_LOGIN
|
||||
@@ -372,7 +372,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
||||
updateRoomState();
|
||||
} else if (event == RoomEvent.MY_SELF_KICK_OUT_ROOM_BY_S_ADMIN) {
|
||||
toast(R.string.kick_out_room_by_s_admin);
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.Event.USER_KICKED_EVENT, "用户被踢");
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.USER_KICKED_EVENT, "用户被踢");
|
||||
getMvpPresenter().exitRoom();
|
||||
}
|
||||
}
|
||||
@@ -1117,7 +1117,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
||||
|
||||
break;
|
||||
case R.id.view_close:
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.Event.EVENT_ROOM_MINIMIZE_CLOSED,
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_ROOM_MINIMIZE_CLOSED,
|
||||
"房间最小化关闭按钮");
|
||||
MainActivity.this.getMvpPresenter().exitRoom();
|
||||
break;
|
||||
|
Reference in New Issue
Block a user