Commit 3701d5f6e70f1d9343ca7c67a3afbeb908e83652
1 parent
7414a598
添加聊天室未找到提示
Showing
3 changed files
with
4 additions
and
1 deletions
.idea/misc.xml
| ... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 | <ConfirmationsSetting value="0" id="Add" /> |
| 38 | 38 | <ConfirmationsSetting value="0" id="Remove" /> |
| 39 | 39 | </component> |
| 40 | - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | |
| 40 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | |
| 41 | 41 | <output url="file://$PROJECT_DIR$/build/classes" /> |
| 42 | 42 | </component> |
| 43 | 43 | <component name="ProjectType"> | ... | ... |
app/libs/libcnlivechat.jar
No preview for this file type
app/src/main/java/com/cnlive/demo/chat/util/ChatUtil.java
| ... | ... | @@ -144,6 +144,9 @@ public class ChatUtil implements IChatUtil, IChat.OnInfoListener, IChat.OnErrorL |
| 144 | 144 | @Override |
| 145 | 145 | public void onError(int what, String s) { |
| 146 | 146 | switch (what) { |
| 147 | + case IChat.ErrorRoomIdNotFound://聊天室Roomid未找到 | |
| 148 | + showMessage("聊天室无法连接,点击重试"); | |
| 149 | + break; | |
| 147 | 150 | case IChat.ErrorInitRoomId://RoomId为空 |
| 148 | 151 | case IChat.ErrorInitAuth://认证失败 |
| 149 | 152 | case IChat.ErrorInitNetwork://未检测到网络 | ... | ... |