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
3e2de8d8
Commit
3e2de8d8
authored
Aug 29, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一括同期処理(コメント整理・ログ追加・要らない処理削除)
parent
9e1f318a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
41 deletions
+34
-41
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentDownloader.java
+0
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+0
-2
ABVJE_UI_Android/res/layout/item_dialog_list.xml
+0
-13
ABVJE_UI_Android/res/layout/item_simple_list_single_choice.xml
+0
-11
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVBatchSyncView.java
+27
-9
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+7
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentDownloader.java
View file @
3e2de8d8
...
...
@@ -840,9 +840,7 @@ public class ContentDownloader {
private
void
onDownloadingContentZip
(
HttpDownloadNotification
notification
,
DownloadStatusType
downloadStatus
)
{
ContentZipDownloadNotification
dlNotification
=
new
ContentZipDownloadNotification
(
notification
,
downloadStatus
);
Logger
.
i
(
TAG
,
"--------------- dlNotification"
);
for
(
ContentDownloadListener
listener
:
contentDownloadListenerSet
)
{
Logger
.
i
(
"---------------"
+
listener
.
getClass
().
toString
());
listener
.
onDownloadingContentZip
(
dlNotification
);
}
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
3e2de8d8
...
...
@@ -1259,9 +1259,7 @@ public class OperationLogic extends AbstractLogic {
operationDto
.
reportType
,
taskReportSendDto
.
hotspotChangeFlg
);
if
(
progressCallback
!=
null
)
{
progressCallback
.
callback
(
new
Integer
(
progress
));
}
removeTaskReportSendIds
.
add
(
taskReportSendDto
.
taskReportSendId
);
FileUtil
.
delete
(
ABVEnvironment
.
getInstance
().
getOperationTaskReportSendDirFilePath
(
operationId
,
taskReportSendDto
.
taskKey
,
taskReportSendDto
.
taskReportSendId
));
...
...
ABVJE_UI_Android/res/layout/item_dialog_list.xml
deleted
100644 → 0
View file @
9e1f318a
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@android:id/text1"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:textAppearance=
"?android:attr/textAppearanceMedium"
android:gravity=
"center_vertical"
android:paddingLeft=
"6dip"
android:paddingRight=
"6dip"
android:textColor=
"@color/text_select"
android:text=
"@string/dummy_str"
/>
\ No newline at end of file
ABVJE_UI_Android/res/layout/item_simple_list_single_choice.xml
deleted
100644 → 0
View file @
9e1f318a
<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@android:id/text1"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textAppearance=
"?android:attr/textAppearanceMedium"
android:gravity=
"center_vertical"
android:checkMark=
"?android:attr/listChoiceIndicatorSingle"
android:padding=
"6dp"
/>
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/view/ABVBatchSyncView.java
View file @
3e2de8d8
...
...
@@ -14,16 +14,14 @@ import jp.agentec.abook.abv.launcher.android.R;
*/
public
class
ABVBatchSyncView
extends
ProgressDialog
{
private
Context
mContext
;
private
Stack
<
OperationDto
>
mBatchSyncOperationStack
=
new
Stack
<>();
public
ABVBatchSyncView
(
Context
context
)
{
super
(
context
);
mContext
=
context
;
init
();
}
// 初期化
private
void
init
()
{
if
(
getWindow
()
!=
null
)
{
setIndeterminate
(
false
);
...
...
@@ -34,29 +32,49 @@ public class ABVBatchSyncView extends ProgressDialog {
}
}
/**
* スタックをセット(同期対象情報)
* @param operationDtoStack
*/
public
void
setStack
(
Stack
<
OperationDto
>
operationDtoStack
)
{
setMax
(
operationDtoStack
.
size
());
mBatchSyncOperationStack
=
operationDtoStack
;
}
public
OperationDto
getOperationDtoByStack
()
{
/**
* 参照のみ、stackには保存状態
* @return
*/
public
OperationDto
getOperationStackPeek
()
{
return
mBatchSyncOperationStack
.
peek
();
}
/**
* stackからOperationDtoを取り出す
* @return
*/
public
OperationDto
getOperationStackPop
()
{
return
mBatchSyncOperationStack
.
pop
();
}
public
boolean
checkMaxProgress
()
{
return
getMax
()
==
getProgress
()
+
1
;
}
/**
* 閉じる処理
*/
public
void
closeProgressDialog
()
{
// プログレス値を0に初期化
setProgress
(
0
);
dismiss
();
}
public
Stack
<
OperationDto
>
getBatchSyncOperationStack
()
{
return
mBatchSyncOperationStack
;
}
public
boolean
e
mpty
()
{
/**
* スタック中の空チェック
* @return
*/
public
boolean
isStackE
mpty
()
{
return
mBatchSyncOperationStack
.
empty
();
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
3e2de8d8
...
...
@@ -2307,6 +2307,7 @@ public class OperationListActivity extends ABVUIActivity {
List
<
OperationDto
>
operationList
=
mOperationDao
.
getNeedSyncOperationByGroupMasterId
(
getABVUIDataCache
().
getOperationGroupMasterId
());
// 一覧に作業が存在しない場合
if
(
operationList
==
null
||
operationList
.
isEmpty
())
{
Logger
.
w
(
TAG
,
"categoryBatchSync operation is null or Empty"
);
return
;
}
...
...
@@ -2316,8 +2317,11 @@ public class OperationListActivity extends ABVUIActivity {
operationDtoStack
.
push
(
operationDto
);
}
// batchSyncViewにスタックをセットして表示
batchSyncView
.
setStack
(
operationDtoStack
);
batchSyncView
.
show
();
// 一括同期処理
batchOperationSync
(
false
);
}
...
...
@@ -2329,16 +2333,15 @@ public class OperationListActivity extends ABVUIActivity {
CommonExecutor
.
execute
(
new
Runnable
()
{
@Override
public
void
run
()
{
if
(
batchSyncView
.
e
mpty
())
{
if
(
batchSyncView
.
isStackE
mpty
())
{
batchSyncView
.
closeProgressDialog
();
return
;
}
Stack
<
OperationDto
>
batchSyncStack
=
batchSyncView
.
getBatchSyncOperationStack
();
if
(!
downloadedFlg
)
{
Logger
.
d
(
TAG
,
"batchOperation sync -- base file not downloaded"
);
// ベースファイルのダウンロードチェック
OperationDto
peekOperationDto
=
batchSync
Stack
.
p
eek
();
OperationDto
peekOperationDto
=
batchSync
View
.
getOperationStackP
eek
();
ContentDto
contentDto
=
contentDao
.
getContent
(
peekOperationDto
.
contentId
);
if
(
contentDto
==
null
)
{
Logger
.
e
(
TAG
,
"contentDto is null !"
);
...
...
@@ -2353,7 +2356,7 @@ public class OperationListActivity extends ABVUIActivity {
}
}
final
OperationDto
operationDto
=
batchSync
Stack
.
p
op
();
final
OperationDto
operationDto
=
batchSync
View
.
getOperationStackP
op
();
// TODO callback or return errorMsg どっちを使用すればいいか検討
syncOperation
(
operationDto
.
operationId
,
operationDto
.
reportType
,
false
,
new
Callback
()
{
@Override
...
...
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