Commit 3701d5f6e70f1d9343ca7c67a3afbeb908e83652
1 parent
7414a598
添加聊天室未找到提示
Showing
3 changed files
with
4 additions
and
1 deletions
.idea/misc.xml
| @@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
| 37 | <ConfirmationsSetting value="0" id="Add" /> | 37 | <ConfirmationsSetting value="0" id="Add" /> |
| 38 | <ConfirmationsSetting value="0" id="Remove" /> | 38 | <ConfirmationsSetting value="0" id="Remove" /> |
| 39 | </component> | 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 | <output url="file://$PROJECT_DIR$/build/classes" /> | 41 | <output url="file://$PROJECT_DIR$/build/classes" /> |
| 42 | </component> | 42 | </component> |
| 43 | <component name="ProjectType"> | 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,6 +144,9 @@ public class ChatUtil implements IChatUtil, IChat.OnInfoListener, IChat.OnErrorL | ||
| 144 | @Override | 144 | @Override |
| 145 | public void onError(int what, String s) { | 145 | public void onError(int what, String s) { |
| 146 | switch (what) { | 146 | switch (what) { |
| 147 | + case IChat.ErrorRoomIdNotFound://聊天室Roomid未找到 | ||
| 148 | + showMessage("聊天室无法连接,点击重试"); | ||
| 149 | + break; | ||
| 147 | case IChat.ErrorInitRoomId://RoomId为空 | 150 | case IChat.ErrorInitRoomId://RoomId为空 |
| 148 | case IChat.ErrorInitAuth://认证失败 | 151 | case IChat.ErrorInitAuth://认证失败 |
| 149 | case IChat.ErrorInitNetwork://未检测到网络 | 152 | case IChat.ErrorInitNetwork://未检测到网络 |