Commit db523305b53882984bf2818d519afed19179100f
1 parent
5ec5c5f4
添加注释
Showing
1 changed file
with
0 additions
and
21 deletions
app/src/main/java/com/cnlive/im/ui/PrivateChatActivity.java
| ... | ... | @@ -158,7 +158,6 @@ public class PrivateChatActivity extends AppCompatActivity implements View.OnCli |
| 158 | 158 | public void onTokenIncorrect() { |
| 159 | 159 | Log.e(TAG, "ConnectListener TokenIncorrect"); |
| 160 | 160 | Toast.makeText(PrivateChatActivity.this, "TokenIncorrect", Toast.LENGTH_SHORT).show(); |
| 161 | - ChatUtil.sendMessage(IChat.PRIVATE, oppositeID, "你好我们可以进行私聊吗", sendMessageListener); | |
| 162 | 161 | } |
| 163 | 162 | |
| 164 | 163 | @Override |
| ... | ... | @@ -177,27 +176,7 @@ public class PrivateChatActivity extends AppCompatActivity implements View.OnCli |
| 177 | 176 | }; |
| 178 | 177 | |
| 179 | 178 | |
| 180 | - private IChat.OnConnectListener connectListener1 = new IChat.OnConnectListener() { | |
| 181 | - @Override | |
| 182 | - public void onTokenIncorrect() { | |
| 183 | - Log.e(TAG, "ConnectListener TokenIncorrect"); | |
| 184 | - Toast.makeText(PrivateChatActivity.this, "TokenIncorrect", Toast.LENGTH_SHORT).show(); | |
| 185 | - | |
| 186 | - } | |
| 187 | 179 | |
| 188 | - @Override | |
| 189 | - public void onSuccess(String s) { | |
| 190 | - Log.e(TAG, "ConnectListener 连接监听" + s); | |
| 191 | - Toast.makeText(PrivateChatActivity.this, s, Toast.LENGTH_SHORT).show(); | |
| 192 | - } | |
| 193 | - | |
| 194 | - @Override | |
| 195 | - public void onError(int i, String s) { | |
| 196 | - Log.e(TAG, "ConnectListener errorCode : " + i + " : errorMessage : " + s); | |
| 197 | - Toast.makeText(PrivateChatActivity.this, s, Toast.LENGTH_SHORT).show(); | |
| 198 | - | |
| 199 | - } | |
| 200 | - }; | |
| 201 | 180 | |
| 202 | 181 | /** |
| 203 | 182 | * 发送消息监听 | ... | ... |