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
8ad7403d
Commit
8ad7403d
authored
Sep 01, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/1.4.100_develop' into 'features/1.4.100'
データ更新の時ローディング表示修正 See merge request
!213
parents
4d42778f
33b4f843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
93 deletions
+48
-93
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
+2
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+46
-92
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
View file @
8ad7403d
...
@@ -238,9 +238,10 @@ public class ContentRefresher {
...
@@ -238,9 +238,10 @@ public class ContentRefresher {
if
(!
isRefreshing
())
{
if
(!
isRefreshing
())
{
updateRefreshContentListState
(-
1L
,
null
,
mProgressCallback
);
updateRefreshContentListState
(-
1L
,
null
,
mProgressCallback
);
}
}
mProgressCallback
.
callback
(
100
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
Logger
.
e
(
"refreshContent failed."
,
e
);
Logger
.
e
(
"refreshContent failed."
,
e
);
mProgressCallback
.
callback
(
100
);
updateRefreshContentListState
(-
1L
,
e
);
updateRefreshContentListState
(-
1L
,
e
);
}
}
contentDownloader
.
kickTask
();
contentDownloader
.
kickTask
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
8ad7403d
...
@@ -170,10 +170,6 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -170,10 +170,6 @@ public class OperationListActivity extends ABVUIActivity {
private
Long
mSelectedOperationId
;
private
Long
mSelectedOperationId
;
private
Integer
mScanType
;
private
Integer
mScanType
;
private
Handler
mHandler
;
public
static
final
int
TIME_OUT
=
1001
;
public
static
final
int
TIME_OUT_LIMIT
=
3600000
;
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
@@ -218,16 +214,6 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -218,16 +214,6 @@ public class OperationListActivity extends ABVUIActivity {
// サービスオプション(作業種別使用)をセット
// サービスオプション(作業種別使用)をセット
mOperationGroupMasterServiceOperationFlg
=
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
();
mOperationGroupMasterServiceOperationFlg
=
ABVDataCache
.
getInstance
().
serviceOption
.
isOperationGroupMaster
();
mHandler
=
new
Handler
()
{
@Override
public
void
handleMessage
(
Message
msg
)
{
if
(
msg
.
what
==
TIME_OUT
)
{
closeProgressPopup
();
}
}
};
if
(!
StringUtil
.
isNullOrEmpty
(
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
operationId
)))
{
if
(!
StringUtil
.
isNullOrEmpty
(
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
operationId
)))
{
final
long
operationId
=
Long
.
parseLong
(
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
operationId
));
final
long
operationId
=
Long
.
parseLong
(
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
operationId
));
String
message
=
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
message
);
String
message
=
getIntent
().
getStringExtra
(
AppDefType
.
PushMessageKey
.
message
);
...
@@ -364,41 +350,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -364,41 +350,7 @@ public class OperationListActivity extends ABVUIActivity {
break
;
break
;
case
ABookKeys
.
CMD_KEY
.
REFRESH_CONTENT
:
case
ABookKeys
.
CMD_KEY
.
REFRESH_CONTENT
:
handler
.
post
(
new
Runnable
()
{
dateUpdate
();
@Override
public
void
run
()
{
showProgressBar
(
getString
(
R
.
string
.
msg_common_processing
));
showProgressBar
(
getString
(
R
.
string
.
msg_common_processing
));
}
});
final
Callback
progressCallback
=
new
Callback
()
{
@Override
public
Object
callback
(
Object
ret
)
{
final
int
progress
=
(
int
)
ret
;
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
if
((
progressDialogHorizontal
.
getProgress
()
+
progress
)
<
100
)
{
progressDialogHorizontal
.
setProgress
(
progressDialogHorizontal
.
getProgress
()
+
progress
);
}
else
{
progressDialogHorizontal
.
setProgress
(
100
);
}
}
});
return
null
;
}
};
try
{
dataRefresh
(
true
,
progressCallback
);
}
catch
(
Exception
e
)
{
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
closeProgressPopup
();
}
});
}
break
;
break
;
case
ABookKeys
.
CMD_KEY
.
CHANGE_OPERATION_GROUP_MASTER
:
case
ABookKeys
.
CMD_KEY
.
CHANGE_OPERATION_GROUP_MASTER
:
...
@@ -477,12 +429,14 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -477,12 +429,14 @@ public class OperationListActivity extends ABVUIActivity {
@JavascriptInterface
@JavascriptInterface
public
void
hideLoading
()
{
public
void
hideLoading
()
{
handler
.
post
(
new
Runnable
()
{
if
(!
contentRefresher
.
isRefreshing
())
{
@Override
handler
.
post
(
new
Runnable
()
{
public
void
run
()
{
@Override
closeProgressPopup
();
public
void
run
()
{
}
closeProgressPopup
();
});
}
});
}
}
}
}
}
...
@@ -602,39 +556,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -602,39 +556,7 @@ public class OperationListActivity extends ABVUIActivity {
if
(
operationId
==
-
1
)
{
if
(
operationId
==
-
1
)
{
if
(
firstFlg
)
{
if
(
firstFlg
)
{
handler
.
post
(
new
Runnable
()
{
dateUpdate
();
@Override
public
void
run
()
{
showProgressBar
(
getString
(
R
.
string
.
msg_common_processing
));
}
});
final
Callback
progressCallback
=
new
Callback
()
{
@Override
public
Object
callback
(
Object
ret
)
{
final
int
progress
=
(
int
)
ret
;
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
if
((
progressDialogHorizontal
.
getProgress
()
+
progress
)
<
100
)
{
progressDialogHorizontal
.
setProgress
(
progressDialogHorizontal
.
getProgress
()
+
progress
);
}
else
{
progressDialogHorizontal
.
setProgress
(
100
);
}
}
});
return
null
;
}
};
try
{
dataRefresh
(
true
,
progressCallback
);
}
catch
(
Exception
e
)
{
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
closeProgressPopup
();
}
});
}
firstFlg
=
false
;
firstFlg
=
false
;
}
}
runOnUiThread
(
new
Runnable
()
{
runOnUiThread
(
new
Runnable
()
{
...
@@ -1374,7 +1296,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -1374,7 +1296,7 @@ public class OperationListActivity extends ABVUIActivity {
//screenRefresh();
//screenRefresh();
//10秒(コンテンツ作成し、公開までの時間)に新着更新させる。
//10秒(コンテンツ作成し、公開までの時間)に新着更新させる。
showProgress
Bar
(
getString
(
R
.
string
.
msg_common_processing
));
showProgress
View
(
getString
(
R
.
string
.
msg_common_processing
));
handler
.
postDelayed
(
new
Runnable
()
{
handler
.
postDelayed
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
...
@@ -2071,8 +1993,40 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -2071,8 +1993,40 @@ public class OperationListActivity extends ABVUIActivity {
});
});
}
}
public
void
showProgressBar
(
String
msg
)
{
public
void
dateUpdate
()
{
showProgressView
(
msg
);
handler
.
post
(
new
Runnable
()
{
mHandler
.
sendEmptyMessageDelayed
(
TIME_OUT
,
TIME_OUT_LIMIT
);
@Override
public
void
run
()
{
showProgressView
(
getString
(
R
.
string
.
msg_common_processing
));
}
});
final
Callback
progressCallback
=
new
Callback
()
{
@Override
public
Object
callback
(
Object
ret
)
{
final
int
progress
=
(
int
)
ret
;
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
if
((
progressDialogHorizontal
.
getProgress
()
+
progress
)
<
100
)
{
progressDialogHorizontal
.
setProgress
(
progressDialogHorizontal
.
getProgress
()
+
progress
);
}
else
{
progressDialogHorizontal
.
setProgress
(
100
);
}
}
});
return
null
;
}
};
try
{
dataRefresh
(
true
,
progressCallback
);
}
catch
(
Exception
e
)
{
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
closeProgressPopup
();
}
});
}
}
}
}
}
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