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
fdf9ac5e
Commit
fdf9ac5e
authored
Nov 27, 2020
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
?ΫЫᡣ
parent
974ea145
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
10 deletions
+24
-10
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ABookSettingActivity.java
+5
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+15
-6
gradle.properties
+4
-4
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ABookSettingActivity.java
View file @
fdf9ac5e
...
@@ -108,6 +108,11 @@ public class ABookSettingActivity extends PreferenceActivity {
...
@@ -108,6 +108,11 @@ public class ABookSettingActivity extends PreferenceActivity {
public
void
stopContentRefresher
()
{
public
void
stopContentRefresher
()
{
ABVUIActivity
activity
=
ActivityHandlingHelper
.
getInstance
().
getPreviousOfSettingActivity
();
ABVUIActivity
activity
=
ActivityHandlingHelper
.
getInstance
().
getPreviousOfSettingActivity
();
if
(
activity
==
null
)
{
ParentWebViewActivity
chatActivity
=
ActivityHandlingHelper
.
getInstance
().
getPreviousForChatOfSettingActivity
();
chatActivity
.
stopContentRefresher
();
}
else
{
activity
.
stopContentRefresher
();
activity
.
stopContentRefresher
();
}
}
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
fdf9ac5e
...
@@ -98,6 +98,15 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -98,6 +98,15 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
settings
.
setAppCacheEnabled
(
false
);
settings
.
setAppCacheEnabled
(
false
);
settings
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
settings
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
settings
.
setMixedContentMode
(
WebSettings
.
MIXED_CONTENT_ALWAYS_ALLOW
);
settings
.
setDomStorageEnabled
(
true
);
settings
.
setDatabaseEnabled
(
true
);
settings
.
setMediaPlaybackRequiresUserGesture
(
false
);
settings
.
setAllowFileAccess
(
true
);
settings
.
setUseWideViewPort
(
true
);
settings
.
setAllowContentAccess
(
true
);
settings
.
setAllowFileAccessFromFileURLs
(
true
);
settings
.
setAllowUniversalAccessFromFileURLs
(
true
);
if
(
Logger
.
isDebugEnabled
())
{
if
(
Logger
.
isDebugEnabled
())
{
mChatWebView
.
setWebContentsDebuggingEnabled
(
true
);
//デバッグモード(chromeからinspect可)
mChatWebView
.
setWebContentsDebuggingEnabled
(
true
);
//デバッグモード(chromeからinspect可)
}
}
...
@@ -197,7 +206,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -197,7 +206,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
// サーバと接続された場合、チャット画面を閉じる
// サーバと接続された場合、チャット画面を閉じる
if
(
tempMessage
.
equals
(
getString
(
R
.
string
.
msg_error_chat_disconnected
))
||
tempMessage
.
equals
(
getString
(
R
.
string
.
msg_error_chat_room_sc_forbidden
)))
{
if
(
tempMessage
.
equals
(
getString
(
R
.
string
.
msg_error_chat_disconnected
))
||
tempMessage
.
equals
(
getString
(
R
.
string
.
msg_error_chat_room_sc_forbidden
)))
{
mChatWebView
.
loadUrl
(
"javascript:leaveRoom()"
);
mChatWebView
.
loadUrl
(
"javascript:
CHAT.
leaveRoom()"
);
finish
();
finish
();
}
else
if
(
tempMessage
.
equals
(
getString
(
R
.
string
.
msg_error_chat_join
)))
{
}
else
if
(
tempMessage
.
equals
(
getString
(
R
.
string
.
msg_error_chat_join
)))
{
getLogin
();
getLogin
();
...
@@ -281,7 +290,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -281,7 +290,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@Override
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
if
(
DownloadManager
.
ACTION_DOWNLOAD_COMPLETE
.
equals
(
intent
.
getAction
()))
{
if
(
DownloadManager
.
ACTION_DOWNLOAD_COMPLETE
.
equals
(
intent
.
getAction
()))
{
mChatWebView
.
loadUrl
(
"javascript:dismissLoadingIndicator()"
);
mChatWebView
.
loadUrl
(
"javascript:
CHAT_UI.
dismissLoadingIndicator()"
);
}
}
}
}
};
};
...
@@ -307,7 +316,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -307,7 +316,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
// イメージをダウンロードする(png, jpg, jpeg, mp4, mov)
// イメージをダウンロードする(png, jpg, jpeg, mp4, mov)
if
(
url
.
toLowerCase
().
endsWith
(
".png"
)
||
url
.
toLowerCase
().
endsWith
(
".jpg"
)
||
url
.
toLowerCase
().
endsWith
(
".jpeg"
)
if
(
url
.
toLowerCase
().
endsWith
(
".png"
)
||
url
.
toLowerCase
().
endsWith
(
".jpg"
)
||
url
.
toLowerCase
().
endsWith
(
".jpeg"
)
||
url
.
toLowerCase
().
endsWith
(
".mov"
)
||
url
.
toLowerCase
().
endsWith
(
".mp4"
))
{
||
url
.
toLowerCase
().
endsWith
(
".mov"
)
||
url
.
toLowerCase
().
endsWith
(
".mp4"
))
{
view
.
loadUrl
(
"javascript:showLoadingIndicator()"
);
view
.
loadUrl
(
"javascript:
CHAT_UI.
showLoadingIndicator()"
);
DownloadManager
mdDownloadManager
=
(
DownloadManager
)
getSystemService
(
Context
.
DOWNLOAD_SERVICE
);
DownloadManager
mdDownloadManager
=
(
DownloadManager
)
getSystemService
(
Context
.
DOWNLOAD_SERVICE
);
DownloadManager
.
Request
request
=
new
DownloadManager
.
Request
(
DownloadManager
.
Request
request
=
new
DownloadManager
.
Request
(
Uri
.
parse
(
url
));
Uri
.
parse
(
url
));
...
@@ -332,7 +341,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -332,7 +341,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
mOperationRelatedContentButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
mOperationRelatedContentButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
mChatWebView
.
loadUrl
(
"javascript:leaveRoom()"
);
mChatWebView
.
loadUrl
(
"javascript:
CHAT.
leaveRoom()"
);
finish
();
finish
();
showCommonContent
();
showCommonContent
();
}
}
...
@@ -581,7 +590,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -581,7 +590,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
* 作業一覧へ遷移
* 作業一覧へ遷移
*/
*/
private
void
backToHome
()
{
private
void
backToHome
()
{
mChatWebView
.
loadUrl
(
"javascript:leaveRoom()"
);
mChatWebView
.
loadUrl
(
"javascript:
CHAT.
leaveRoom()"
);
finish
();
finish
();
Intent
intent
=
new
Intent
();
Intent
intent
=
new
Intent
();
intent
.
setClass
(
ChatWebviewActivity
.
this
,
OperationListActivity
.
class
);
intent
.
setClass
(
ChatWebviewActivity
.
this
,
OperationListActivity
.
class
);
...
@@ -613,7 +622,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -613,7 +622,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
// 設定画面へ遷移
// 設定画面へ遷移
public
void
onClickSetting
(
View
v
)
{
public
void
onClickSetting
(
View
v
)
{
mChatWebView
.
loadUrl
(
"javascript:leaveRoom()"
);
mChatWebView
.
loadUrl
(
"javascript:
CHAT.
leaveRoom()"
);
finish
();
finish
();
showSetting
();
showSetting
();
}
}
...
...
gradle.properties
View file @
fdf9ac5e
...
@@ -38,12 +38,12 @@ app_versioncode=1
...
@@ -38,12 +38,12 @@ app_versioncode=1
# abvEnvironments.xml
# abvEnvironments.xml
#cms server
#cms server
acms_address
=
https://
abook189
.abook.bz/acms
acms_address
=
https://
chatdev2
.abook.bz/acms
download_server_address
=
https://
abook189
.abook.bz/acms
download_server_address
=
https://
chatdev2
.abook.bz/acms
#syncview server
#syncview server
websocket_server_http_url
=
https://
abookplus.agentec.jp
/v1
websocket_server_http_url
=
https://
chatdev2.abook.bz
/v1
websocket_server_ws_url
=
wss://
abookplus.agentec.jp
/v1
websocket_server_ws_url
=
wss://
chatdev2.abook.bz
/v1
#WebSocket debug出力
#WebSocket debug出力
websocket_debug
=
false
websocket_debug
=
false
...
...
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