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
63b27ee5
Commit
63b27ee5
authored
Feb 21, 2024
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change property names: mAutoSyncingFlg, mAutoSyncOpenOperationId
parent
78c5c903
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVBatchSyncView.java
+2
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+14
-12
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVBatchSyncView.java
View file @
63b27ee5
...
@@ -82,7 +82,7 @@ public class ABVBatchSyncView extends ProgressDialog {
...
@@ -82,7 +82,7 @@ public class ABVBatchSyncView extends ProgressDialog {
// Activity破棄フラグがtrue、またはスタックが存在しなければ、全て完了と見做す
// Activity破棄フラグがtrue、またはスタックが存在しなければ、全て完了と見做す
closeProgressDialog
();
closeProgressDialog
();
Logger
.
d
(
TAG
,
"---batchSync is end"
);
Logger
.
d
(
TAG
,
"---batchSync is end"
);
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
isAutoSyncin
g
)
{
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
mAutoSyncingFl
g
)
{
mOperationListActivity
.
autoSyncOperationDone
(
true
);
mOperationListActivity
.
autoSyncOperationDone
(
true
);
}
}
return
;
return
;
...
@@ -100,7 +100,7 @@ public class ABVBatchSyncView extends ProgressDialog {
...
@@ -100,7 +100,7 @@ public class ABVBatchSyncView extends ProgressDialog {
// error
// error
showBatchSyncErrorAlert
(
peekOperationDto
,
mOperationListActivity
.
getString
(
R
.
string
.
msg_batch_sync_content_download_fail
));
showBatchSyncErrorAlert
(
peekOperationDto
,
mOperationListActivity
.
getString
(
R
.
string
.
msg_batch_sync_content_download_fail
));
}
}
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
isAutoSyncin
g
)
{
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
mAutoSyncingFl
g
)
{
mOperationListActivity
.
autoSyncOperationDone
(
false
);
mOperationListActivity
.
autoSyncOperationDone
(
false
);
}
}
return
;
return
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
63b27ee5
...
@@ -206,8 +206,8 @@ public class OperationListActivity extends OperationActivity {
...
@@ -206,8 +206,8 @@ public class OperationListActivity extends OperationActivity {
// 作業種別のサービスオプション値を保持用フラグ
// 作業種別のサービスオプション値を保持用フラグ
private
boolean
mOperationGroupMasterServiceOperationFlg
;
private
boolean
mOperationGroupMasterServiceOperationFlg
;
public
boolean
isAutoSyncin
g
;
public
boolean
mAutoSyncingFl
g
;
public
Long
a
utoSyncOpenOperationId
=
null
;
public
Long
mA
utoSyncOpenOperationId
=
null
;
public
Long
mQrCodeOperationId
=
null
;
public
Long
mQrCodeOperationId
=
null
;
// ビューの作成
// ビューの作成
...
@@ -482,12 +482,12 @@ public class OperationListActivity extends OperationActivity {
...
@@ -482,12 +482,12 @@ public class OperationListActivity extends OperationActivity {
setOperationListView
();
setOperationListView
();
}
}
if
(
isAutoSync
())
{
if
(
isAutoSync
())
{
if
(
isAutoSyncin
g
)
{
if
(
mAutoSyncingFl
g
)
{
if
(
result
)
{
if
(
result
)
{
// content update success
// content update success
List
<
OperationDto
>
needSyncOperationList
=
new
ArrayList
<>();
List
<
OperationDto
>
needSyncOperationList
=
new
ArrayList
<>();
if
(
a
utoSyncOpenOperationId
!=
null
)
{
if
(
mA
utoSyncOpenOperationId
!=
null
)
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
a
utoSyncOpenOperationId
);
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
mA
utoSyncOpenOperationId
);
if
(
operationDto
.
needSyncFlg
)
{
if
(
operationDto
.
needSyncFlg
)
{
needSyncOperationList
.
add
(
operationDto
);
needSyncOperationList
.
add
(
operationDto
);
}
}
...
@@ -2452,10 +2452,10 @@ public class OperationListActivity extends OperationActivity {
...
@@ -2452,10 +2452,10 @@ public class OperationListActivity extends OperationActivity {
* Run refresh data and batch sync if need
* Run refresh data and batch sync if need
*/
*/
public
void
autoSyncOperation
()
{
public
void
autoSyncOperation
()
{
if
(
isAutoSyncin
g
)
{
if
(
mAutoSyncingFl
g
)
{
return
;
return
;
}
}
isAutoSyncin
g
=
true
;
mAutoSyncingFl
g
=
true
;
showProgressView
(
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
showProgressView
(
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
synchronizing
,
R
.
string
.
synchronizing
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
...
@@ -2475,7 +2475,7 @@ public class OperationListActivity extends OperationActivity {
...
@@ -2475,7 +2475,7 @@ public class OperationListActivity extends OperationActivity {
* @param operationId
* @param operationId
*/
*/
public
void
autoSyncOperationId
(
Long
operationId
)
{
public
void
autoSyncOperationId
(
Long
operationId
)
{
a
utoSyncOpenOperationId
=
operationId
;
mA
utoSyncOpenOperationId
=
operationId
;
autoSyncOperation
();
autoSyncOperation
();
}
}
...
@@ -2484,14 +2484,16 @@ public class OperationListActivity extends OperationActivity {
...
@@ -2484,14 +2484,16 @@ public class OperationListActivity extends OperationActivity {
* @param isSuccess
* @param isSuccess
*/
*/
public
void
autoSyncOperationDone
(
boolean
isSuccess
)
{
public
void
autoSyncOperationDone
(
boolean
isSuccess
)
{
isAutoSyncin
g
=
false
;
mAutoSyncingFl
g
=
false
;
closeProgressPopup
();
closeProgressPopup
();
if
(
isSuccess
)
{
if
(
isSuccess
)
{
if
(
autoSyncOpenOperationId
!=
null
)
{
if
(
mAutoSyncOpenOperationId
!=
null
)
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
autoSyncOpenOperationId
);
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
mAutoSyncOpenOperationId
);
if
(!
operationDto
.
needSyncFlg
)
{
openReportView
(
operationDto
);
openReportView
(
operationDto
);
}
}
}
}
autoSyncOpenOperationId
=
null
;
}
mAutoSyncOpenOperationId
=
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