Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
623c61f2
Commit
623c61f2
authored
Apr 16, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/#529_ルーム開設アラート' into 'features/abcomm_sp6'
ルーム開設画面からルーム開設する場合既存のルームがあればアラート表示 See merge request
!114
parents
0849a133
80b422e4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
1 deletions
+21
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
+4
-0
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+1
-0
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+2
-0
ABVJE_Res_Default_Android/res/values/strings.xml
+1
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+13
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
View file @
623c61f2
...
...
@@ -83,6 +83,10 @@ public interface ABookCommConstants {
}
interface
FLAG
{
interface
SCREEN_FLG
{
Integer
NAME_CARD
=
0
;
Integer
MAKE_ROOM
=
1
;
}
interface
SELF_FLAG
{
Integer
OFF
=
0
;
Integer
ON
=
1
;
...
...
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
623c61f2
...
...
@@ -1478,6 +1478,7 @@
<string
name=
"msg_error_chat_room_name_too_long"
>
ルーム名は文字列20字以内に入力してください。
</string>
<string
name=
"msg_error_chat_name_has_invalid_character"
>
特殊文字 ;/?:@
&
=+$,-_.!~*\'()#\\\"` はルーム名に含めることができません。
</string>
<string
name=
"msg_error_chat_room_sc_forbidden"
>
認証に失敗しました。再度ログインが必要です。
</string>
<string
name=
"msg_error_already_exist_same_room"
>
同じルームが既に存在します。
</string>
<!-- 連続作業 -->
<string
name=
"msg_error_all_process_delete"
>
全削除の送信に失敗しました。
</string>
...
...
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
623c61f2
...
...
@@ -1485,4 +1485,5 @@
<string
name=
"msg_error_chat_name_has_invalid_character"
>
특수문자 ;/?:@
&
=+$,-_.!~*\'()#\\\"` 는 방 제목에 포함될 수 없습니다.
</string>
<string
name=
"msg_error_chat_room_sc_forbidden"
>
사용자 정보를 확인할 수 없습니다. 다시 로그인하시기 바랍니다.
</string>
<string
name=
"msg_error_all_process_delete"
>
모두 삭제 송신에 실패하였습니다.
</string>
<string
name=
"msg_error_already_exist_same_room"
>
동일한 채팅방이 이미 존재합니다.
</string>
</resources>
\ No newline at end of file
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
623c61f2
...
...
@@ -1482,4 +1482,5 @@
<string
name=
"msg_error_chat_name_has_invalid_character"
>
The character ;/?:@
&
=+$,-_.!~*\'()#\\\"` cannot be included in the roomname.
</string>
<string
name=
"msg_error_chat_room_sc_forbidden"
>
Failed to authenticate. Please login again.
</string>
<string
name=
"msg_error_all_process_delete"
>
Failed to send all deletes.
</string>
<string
name=
"msg_error_already_exist_same_room"
>
Already exist same room.
</string>
</resources>
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
623c61f2
...
...
@@ -819,8 +819,20 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
@JavascriptInterface
public
void
createChatRoom
(
String
roomType
,
String
userIdList
,
String
encodedRoomName
)
throws
NetworkDisconnectedException
,
AcmsException
{
public
void
createChatRoom
(
String
roomType
,
String
userIdList
,
String
encodedRoomName
,
String
screenFlg
)
throws
NetworkDisconnectedException
,
AcmsException
{
CreatedRoomJSON
resultJson
=
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
createRoom
(
sid
,
roomType
,
userIdList
,
encodedRoomName
,
loginId
);
if
(
ABookCommConstants
.
FLAG
.
SCREEN_FLG
.
MAKE_ROOM
.
equals
(
Integer
.
parseInt
(
screenFlg
)))
{
ChatRoomDto
chatRoomDto
=
communicationLogic
.
getChatRoom
(
resultJson
.
chatRoomDto
.
chatRoomId
);
if
(
chatRoomDto
!=
null
)
{
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mChatWebView
.
loadUrl
(
String
.
format
(
"javascript:alert('"
+
getString
(
R
.
string
.
msg_error_already_exist_same_room
)+
"');"
));
}
});
return
;
}
}
communicationLogic
.
insertChatRoom
(
resultJson
.
chatRoomDto
);
communicationLogic
.
addUserInRoom
(
StringUtil
.
join
(
","
,
userIdList
,
shopMemberId
.
toString
()),
resultJson
.
chatRoomDto
.
chatRoomId
);
final
Integer
chatRoomId
=
resultJson
.
chatRoomDto
.
chatRoomId
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment