Commit 4de00816 by Lee Munkyeong

#482対応。

parent 6ac18d62
...@@ -106,6 +106,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -106,6 +106,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
private boolean isOnline; private boolean isOnline;
private Long roomId; private Long roomId;
private String roomType; private String roomType;
private String beforeRoomType;
private Integer shopMemberId; private Integer shopMemberId;
private String selectedUserIdList; private String selectedUserIdList;
...@@ -787,6 +788,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -787,6 +788,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
roomId = Long.parseLong(joinRoomId); roomId = Long.parseLong(joinRoomId);
roomName = joinRoomName; roomName = joinRoomName;
roomType = chatRoom.type.toString(); roomType = chatRoom.type.toString();
beforeRoomType = chatRoom.type.toString();
mChatWebView.post(new Runnable() { mChatWebView.post(new Runnable() {
@Override @Override
public void run() { public void run() {
...@@ -826,6 +828,16 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -826,6 +828,16 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
} }
@JavascriptInterface @JavascriptInterface
public String getBeforeRoomType() {
return beforeRoomType;
}
@JavascriptInterface
public void clearBeforeRoomType() {
beforeRoomType = null;
}
@JavascriptInterface
public void updateMessages(String roomId) throws NetworkDisconnectedException, AcmsException { public void updateMessages(String roomId) throws NetworkDisconnectedException, AcmsException {
MessageInfoListJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).getMessages(sid, roomId); MessageInfoListJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).getMessages(sid, roomId);
for (ChatMessageDto chatMessageDto : resultJson.chatMessageDtoArrayList) { for (ChatMessageDto chatMessageDto : resultJson.chatMessageDtoArrayList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment