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
f9608909
Commit
f9608909
authored
Apr 20, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
マスターデータ読み込みのエラー時にダイアログを出すようにした。
parent
f6dd3d4d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
10 deletions
+22
-10
ABVJE_BL/build.gradle
+2
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
+2
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
+1
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/MasterDataLogic.java
+3
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+14
-1
No files found.
ABVJE_BL/build.gradle
View file @
f9608909
apply
plugin:
'java'
apply
plugin:
'java'
sourceCompatibility
=
1.
6
sourceCompatibility
=
1.
8
targetCompatibility
=
1.
6
targetCompatibility
=
1.
8
version
=
'1.0'
version
=
'1.0'
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
View file @
f9608909
...
@@ -835,7 +835,8 @@ public class AcmsClient implements AcmsClientResponseListener {
...
@@ -835,7 +835,8 @@ public class AcmsClient implements AcmsClientResponseListener {
HttpTaskWorker
<
HttpParameterObject
>
httpTaskThread
=
null
;
HttpTaskWorker
<
HttpParameterObject
>
httpTaskThread
=
null
;
try
{
try
{
long
t
=
HttpRequestSender
.
DefaultConnectionTimeout
*
2
;
//long t = HttpRequestSender.DefaultConnectionTimeout * 2;
long
t
=
HttpRequestSender
.
DefaultConnectionTimeout
/
10
;
for
(
int
i
=
0
;
i
<
3
;
i
++,
t
*=
2
)
{
for
(
int
i
=
0
;
i
<
3
;
i
++,
t
*=
2
)
{
httpTaskThread
=
new
HttpTaskWorker
<
HttpParameterObject
>(
methodName
,
apiUrl
,
param
);
httpTaskThread
=
new
HttpTaskWorker
<
HttpParameterObject
>(
methodName
,
apiUrl
,
param
);
httpTaskThread
.
start
();
httpTaskThread
.
start
();
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
View file @
f9608909
...
@@ -86,10 +86,6 @@ import jp.agentec.adf.util.DateTimeUtil;
...
@@ -86,10 +86,6 @@ import jp.agentec.adf.util.DateTimeUtil;
private
ContentRefresher
()
{
private
ContentRefresher
()
{
}
}
public
void
setContentDownloadListener
(
ContentDownloadListener
contentDownloadListener
)
{
this
.
contentDownloadListener
=
contentDownloadListener
;
}
/**
/**
* コンテンツ情報をACMSから更新します。
* コンテンツ情報をACMSから更新します。
* @throws ABVException キャッシュにユーザ情報がありません。再度ログインする必要があります。
* @throws ABVException キャッシュにユーザ情報がありません。再度ログインする必要があります。
...
@@ -415,7 +411,7 @@ import jp.agentec.adf.util.DateTimeUtil;
...
@@ -415,7 +411,7 @@ import jp.agentec.adf.util.DateTimeUtil;
*/
*/
private
void
resendEnquete
()
{
private
void
resendEnquete
()
{
List
<
EnqueteDto
>
dtoList
=
enqueteLogic
.
getReplyEnquete
();
List
<
EnqueteDto
>
dtoList
=
enqueteLogic
.
getReplyEnquete
();
if
(
dtoList
!=
null
&&
dtoList
.
size
()
>
0
)
{
if
(
dtoList
!=
null
&&
dtoList
.
size
()
>
0
)
{
for
(
EnqueteDto
dto
:
dtoList
)
{
for
(
EnqueteDto
dto
:
dtoList
)
{
long
contentId
=
dto
.
contentId
;
long
contentId
=
dto
.
contentId
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/MasterDataLogic.java
View file @
f9608909
...
@@ -9,6 +9,7 @@ import jp.agentec.abook.abv.bl.acms.client.parameters.FetchDateParameters;
...
@@ -9,6 +9,7 @@ import jp.agentec.abook.abv.bl.acms.client.parameters.FetchDateParameters;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.exception.ABVException
;
import
jp.agentec.abook.abv.bl.common.exception.ABVException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.adf.util.FileUtil
;
import
jp.agentec.adf.util.FileUtil
;
...
@@ -25,7 +26,7 @@ public class MasterDataLogic extends AbstractLogic {
...
@@ -25,7 +26,7 @@ public class MasterDataLogic extends AbstractLogic {
* @throws Exception その他、例外です。
* @throws Exception その他、例外です。
* @since 1.0.0
* @since 1.0.0
*/
*/
public
String
initializeMasterData
(
String
lastFetchDate
)
{
public
String
initializeMasterData
(
String
lastFetchDate
)
throws
AcmsException
,
NetworkDisconnectedException
,
IOException
{
String
fetchDate
=
null
;
String
fetchDate
=
null
;
try
{
try
{
FetchDateParameters
param
=
new
FetchDateParameters
(
cache
.
getMemberInfo
().
sid
,
lastFetchDate
);
FetchDateParameters
param
=
new
FetchDateParameters
(
cache
.
getMemberInfo
().
sid
,
lastFetchDate
);
...
@@ -47,6 +48,7 @@ public class MasterDataLogic extends AbstractLogic {
...
@@ -47,6 +48,7 @@ public class MasterDataLogic extends AbstractLogic {
fetchDate
=
masterDataJson
.
fetchDate
;
fetchDate
=
masterDataJson
.
fetchDate
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
"masterDataSend error : "
,
e
);
Logger
.
e
(
TAG
,
"masterDataSend error : "
,
e
);
throw
e
;
}
}
// masterData の fetchDateを渡す。
// masterData の fetchDateを渡す。
return
fetchDate
;
return
fetchDate
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
f9608909
...
@@ -423,10 +423,23 @@ public class OperationListActivity extends OperationActivity {
...
@@ -423,10 +423,23 @@ public class OperationListActivity extends OperationActivity {
@Override
@Override
public
void
onRefreshedContent
(
final
boolean
result
,
long
contentId
,
Exception
e
)
{
public
void
onRefreshedContent
(
final
boolean
result
,
long
contentId
,
Exception
e
)
{
super
.
onRefreshedContent
(
result
,
contentId
,
e
)
;
final
Exception
ex
=
e
;
runOnUiThread
(
new
Runnable
()
{
runOnUiThread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
if
(
ex
!=
null
)
{
// ヘッダーの新着更新処理を完了にさせる
stopUpdateAnimation
();
final
ABookAlertDialog
messageDialog
=
AlertDialogUtil
.
createAlertDialog
(
OperationListActivity
.
this
,
R
.
string
.
app_name
);
messageDialog
.
setMessage
(
getString
(
R
.
string
.
failed_get_master_data
));
messageDialog
.
setPositiveButton
(
R
.
string
.
confirm
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
whichButton
)
{
messageDialog
.
dismiss
();
}
});
messageDialog
.
show
();
}
if
(!
contentRefresher
.
isRefreshing
())
{
if
(!
contentRefresher
.
isRefreshing
())
{
// 新着処理が終わったら以下の処理が実行
// 新着処理が終わったら以下の処理が実行
stopUpdateAnimation
();
stopUpdateAnimation
();
...
...
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