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
61794f96
Commit
61794f96
authored
Apr 27, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最初データロードタイミング問題対応
parent
796d09a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+13
-3
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
61794f96
...
...
@@ -161,13 +161,12 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
private
void
initializeWebView
()
{
initiateDatas
(
getIntent
());
setupDefaultChatWebViewURL
();
setupChatWebView
();
registChatRoomPageLoader
();
registJSReactor
();
addDownloadListener
();
observeNetworkChange
();
loadWebViewResource
();
setupDefaultChatWebViewURL
();
}
private
void
initiateDatas
(
Intent
intent
)
{
...
...
@@ -188,6 +187,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
chatWebviewUrl
=
NETWORK_ERROR_PLACE_HOLDER
;
if
(!
ABVEnvironment
.
getInstance
().
networkAdapter
.
isNetworkConnected
())
{
registChatRoomPageLoader
();
Logger
.
d
(
"DEVICE_NOT_CONNECTED_NETWORK:"
);
return
;
}
...
...
@@ -212,6 +212,16 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
updateAllGroupInfo
();
updateFavoriteInfo
();
shopMemberId
=
communicationLogic
.
getMyShopMemberDto
().
shopMemberId
;
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
try
{
registChatRoomPageLoader
();
}
catch
(
Exception
e
)
{
Logger
.
d
(
"registChatRoomPageLoader Error"
);
}
}
});
closeProgressPopup
();
}
catch
(
Exception
e
)
{
Logger
.
d
(
"Update error"
);
...
...
@@ -224,6 +234,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
mChatWebView
=
findViewById
(
R
.
id
.
chatWebview2
);
mChatWebView
.
setOverScrollMode
(
View
.
OVER_SCROLL_NEVER
);
//オーバースクロールしない。
mChatWebView
.
setVerticalScrollBarEnabled
(
false
);
//スクロールバーを消す。
mChatWebView
.
addJavascriptInterface
(
jsInf
,
"android"
);
WebSettings
settings
=
mChatWebView
.
getSettings
();
settings
.
setJavaScriptEnabled
(
true
);
//Javascriptを有効にする。
settings
.
setAppCacheEnabled
(
true
);
...
...
@@ -250,7 +261,6 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
// 最後のチャットのルーム
String
lastRoomId
=
PreferenceUtil
.
getUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
CHAT_LAST_ROOMID
,
""
);
mChatWebView
.
addJavascriptInterface
(
jsInf
,
"android"
);
String
fixedParam
=
"&platform=android&isMobile=true&chatServerUrl="
+
ABVEnvironment
.
getInstance
().
websocketServerHttpUrl
;
//ページをロード
if
(
roomId
!=
0
&&
roomName
!=
null
)
{
// by push message
...
...
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