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
f9af92e0
Commit
f9af92e0
authored
Feb 20, 2024
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement auto sync 1->7
parent
f3cacd09
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
24 deletions
+28
-24
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVBatchSyncView.java
+6
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+0
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
+22
-24
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVBatchSyncView.java
View file @
f9af92e0
...
...
@@ -82,6 +82,9 @@ public class ABVBatchSyncView extends ProgressDialog {
// Activity破棄フラグがtrue、またはスタックが存在しなければ、全て完了と見做す
closeProgressDialog
();
Logger
.
d
(
TAG
,
"---batchSync is end"
);
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
isAutoSyncing
)
{
mOperationListActivity
.
autoSyncOperationDone
(
true
);
}
return
;
}
// ベース資料のダウンロードチェック
...
...
@@ -97,6 +100,9 @@ public class ABVBatchSyncView extends ProgressDialog {
// error
showBatchSyncErrorAlert
(
peekOperationDto
,
mOperationListActivity
.
getString
(
R
.
string
.
msg_batch_sync_content_download_fail
));
}
if
(
mOperationListActivity
!=
null
&&
mOperationListActivity
.
isAutoSyncing
)
{
mOperationListActivity
.
autoSyncOperationDone
(
false
);
}
return
;
}
// 同期処理
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
f9af92e0
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/OperationListHelper.java
View file @
f9af92e0
...
...
@@ -148,18 +148,7 @@ public abstract class OperationListHelper {
adapter
.
setAdapterListener
(
new
AbstractOperationAdapter
.
AbstractOperationListAdapterListener
()
{
@Override
public
void
openReport
(
OperationDto
operationDto
)
{
if
(
operationDto
.
contentId
!=
null
&&
operationDto
.
contentId
!=
0
)
{
// 作業画面
mAppActivity
.
openReportView
(
operationDto
);
}
else
{
if
(
operationDto
.
operationType
==
PANO
)
{
// パノラマ登録画面
mAppActivity
.
showPanoEntryDialog
(
operationDto
);
}
else
{
// 何もしない
Logger
.
e
(
"not open target"
);
}
}
onClickReport
(
operationDto
);
}
@Override
...
...
@@ -211,18 +200,7 @@ public abstract class OperationListHelper {
adapter
.
setAdapterListener
(
new
AbstractOperationAdapter
.
AbstractOperationListAdapterListener
()
{
@Override
public
void
openReport
(
OperationDto
operationDto
)
{
if
(
operationDto
.
contentId
!=
null
&&
operationDto
.
contentId
!=
0
)
{
// 作業画面
mAppActivity
.
openReportView
(
operationDto
);
}
else
{
if
(
operationDto
.
operationType
==
PANO
)
{
// パノラマ登録画面
mAppActivity
.
showPanoEntryDialog
(
operationDto
);
}
else
{
// 何もしない
Logger
.
e
(
"not open target"
);
}
}
onClickReport
(
operationDto
);
}
@Override
...
...
@@ -285,4 +263,24 @@ public abstract class OperationListHelper {
*/
abstract
protected
List
<
OperationDto
>
findOperationList
()
throws
Exception
;
public
void
onClickReport
(
OperationDto
operationDto
)
{
if
(
mAppActivity
.
needAutoSync
())
{
mAppActivity
.
autoSyncOpenOperationId
=
operationDto
.
operationId
;
mAppActivity
.
autoSyncOperation
();
return
;
}
if
(
operationDto
.
contentId
!=
null
&&
operationDto
.
contentId
!=
0
)
{
// 作業画面
mAppActivity
.
openReportView
(
operationDto
);
}
else
{
if
(
operationDto
.
operationType
==
PANO
)
{
// パノラマ登録画面
mAppActivity
.
showPanoEntryDialog
(
operationDto
);
}
else
{
// 何もしない
Logger
.
e
(
"not open target"
);
}
}
}
}
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