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
98b4ca51
Commit
98b4ca51
authored
Oct 03, 2019
by
Takuya Ogawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/1.1.300_chat_prototype' into 'features/1.1.300_chat'
1.1.300_chat_prototype See merge request
!39
parents
7a39bdf4
c3e6f7d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+5
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+4
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
98b4ca51
...
...
@@ -61,8 +61,9 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
chatWebviewUrl
=
intent
.
getStringExtra
(
"chatWebviewUrl"
);
String
sid
=
intent
.
getStringExtra
(
"sid"
);
Long
roomId
=
intent
.
getLongExtra
(
"roomId"
,
0
);
String
loginId
=
intent
.
getStringExtra
(
"loginId"
);
String
roomName
=
intent
.
getStringExtra
(
"roomName"
);
String
loginId
=
intent
.
getStringExtra
(
"loginId"
);
String
shopName
=
intent
.
getStringExtra
(
"shopName"
);
// チャットViewのクローズボタン
final
ImageButton
imageButton
=
findViewById
(
R
.
id
.
chat_close_btn
);
...
...
@@ -88,13 +89,13 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
mChatWebView
.
addJavascriptInterface
(
jsInf
,
"android"
);
//ページをロード
if
(
roomId
!=
0
&&
roomName
!=
null
)
{
// by push message
mChatWebView
.
loadUrl
(
chatWebviewUrl
+
"?sid="
+
sid
+
"&roomId="
+
roomId
+
"&roomName="
+
roomName
+
"&loginId="
+
loginId
);
mChatWebView
.
loadUrl
(
chatWebviewUrl
+
"?sid="
+
sid
+
"&loginId="
+
loginId
+
"&shopName="
+
shopName
+
"&roomId="
+
roomId
+
"&roomName="
+
roomName
);
}
else
{
// Chat
if
(
lastRoomName
.
length
()
>
0
&&
lastRoomId
.
length
()
>
0
)
{
mChatWebView
.
loadUrl
(
chatWebviewUrl
+
"?sid="
+
sid
+
"&roomId="
+
lastRoomId
+
"&roomName="
+
lastRoomName
+
"&loginId="
+
loginId
);
mChatWebView
.
loadUrl
(
chatWebviewUrl
+
"?sid="
+
sid
+
"&loginId="
+
loginId
+
"&shopName="
+
shopName
+
"&roomId="
+
lastRoomId
+
"&roomName="
+
lastRoomName
);
}
else
{
mChatWebView
.
loadUrl
(
chatWebviewUrl
+
"?sid="
+
sid
+
"&loginId="
+
loginId
);
mChatWebView
.
loadUrl
(
chatWebviewUrl
+
"?sid="
+
sid
+
"&loginId="
+
loginId
+
"&shopName="
+
shopName
);
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
98b4ca51
...
...
@@ -1551,7 +1551,9 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
String
sid
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
sid
;
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"shopName"
,
shopName
);
if
(
dto
!=
null
)
{
intent
.
putExtra
(
"roomId"
,
dto
.
roomId
);
...
...
@@ -1573,7 +1575,9 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
String
sid
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
sid
;
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"shopName"
,
shopName
);
intent
.
setClassName
(
mContext
.
getPackageName
(),
className
);
Activity
activity
=
getCurrentActivity
();
if
(
activity
!=
null
)
{
...
...
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