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 {
// Activity破棄フラグがtrue、またはスタックが存在しなければ、全て完了と見做す
closeProgressDialog
();
Logger
.
d
(
TAG
,
"---batchSync is end"
);
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
isAutoSyncin
g
)
{
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
mAutoSyncingFl
g
)
{
mOperationListActivity
.
autoSyncOperationDone
(
true
);
}
return
;
...
...
@@ -100,7 +100,7 @@ public class ABVBatchSyncView extends ProgressDialog {
// error
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
);
}
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 {
// 作業種別のサービスオプション値を保持用フラグ
private
boolean
mOperationGroupMasterServiceOperationFlg
;
public
boolean
isAutoSyncin
g
;
public
Long
a
utoSyncOpenOperationId
=
null
;
public
boolean
mAutoSyncingFl
g
;
public
Long
mA
utoSyncOpenOperationId
=
null
;
public
Long
mQrCodeOperationId
=
null
;
// ビューの作成
...
...
@@ -482,12 +482,12 @@ public class OperationListActivity extends OperationActivity {
setOperationListView
();
}
if
(
isAutoSync
())
{
if
(
isAutoSyncin
g
)
{
if
(
mAutoSyncingFl
g
)
{
if
(
result
)
{
// content update success
List
<
OperationDto
>
needSyncOperationList
=
new
ArrayList
<>();
if
(
a
utoSyncOpenOperationId
!=
null
)
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
a
utoSyncOpenOperationId
);
if
(
mA
utoSyncOpenOperationId
!=
null
)
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
mA
utoSyncOpenOperationId
);
if
(
operationDto
.
needSyncFlg
)
{
needSyncOperationList
.
add
(
operationDto
);
}
...
...
@@ -2452,10 +2452,10 @@ public class OperationListActivity extends OperationActivity {
* Run refresh data and batch sync if need
*/
public
void
autoSyncOperation
()
{
if
(
isAutoSyncin
g
)
{
if
(
mAutoSyncingFl
g
)
{
return
;
}
isAutoSyncin
g
=
true
;
mAutoSyncingFl
g
=
true
;
showProgressView
(
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
synchronizing
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)));
...
...
@@ -2475,7 +2475,7 @@ public class OperationListActivity extends OperationActivity {
* @param operationId
*/
public
void
autoSyncOperationId
(
Long
operationId
)
{
a
utoSyncOpenOperationId
=
operationId
;
mA
utoSyncOpenOperationId
=
operationId
;
autoSyncOperation
();
}
...
...
@@ -2484,14 +2484,16 @@ public class OperationListActivity extends OperationActivity {
* @param isSuccess
*/
public
void
autoSyncOperationDone
(
boolean
isSuccess
)
{
isAutoSyncin
g
=
false
;
mAutoSyncingFl
g
=
false
;
closeProgressPopup
();
if
(
isSuccess
)
{
if
(
autoSyncOpenOperationId
!=
null
)
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
autoSyncOpenOperationId
);
if
(
mAutoSyncOpenOperationId
!=
null
)
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
mAutoSyncOpenOperationId
);
if
(!
operationDto
.
needSyncFlg
)
{
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