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
52f75401
Commit
52f75401
authored
Apr 22, 2020
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
アプリロック画面表示中に新着更新処理が実行され、通信エラー表示される問題対応
コメント修正
parent
ba797441
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
10 deletions
+25
-10
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/util/SecurityUtil.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/ABVDataCache.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVActivity.java
+19
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+4
-0
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/util/SecurityUtil.java
View file @
52f75401
...
...
@@ -253,7 +253,7 @@ public class SecurityUtil {
}
/**
* @version 1.2.
2
00
* @version 1.2.
3
00
* サービスオプション「ユーザパスワードソルト付加」がtrueの場合、
* パスワードとログインIDをソルトしてから結合し、MD5値を返却します
* falseの場合、既存暗号化パスワード返す。
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/ABVDataCache.java
View file @
52f75401
...
...
@@ -337,7 +337,7 @@ public class ABVDataCache {
}
/**
* @version 1.2.
2
00
* @version 1.2.
3
00
* サービスオプション(ユーザパスワードソルト付加)返す
* @return true:利用する, false:利用しない
*/
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVActivity.java
View file @
52f75401
...
...
@@ -483,12 +483,28 @@ public abstract class ABVActivity extends Activity {
}
/**
* 前回の端末利用から一定期間が経っているかどうかチェック
する
* 前回の端末利用から一定期間が経っているかどうかチェック
し、ログイン画面表示
* @return true:認証有効 false:認証無効
*/
protected
boolean
checkValidAuthTime
()
{
boolean
result
=
false
;
try
{
if
(
checkForceLoginPeriodically
())
{
callLoginActivity
(
false
,
true
,
false
);
result
=
true
;
}
}
catch
(
Exception
e
)
{
Logger
.
e
(
"Exception LoginTimeOutCheck"
,
e
);
}
return
result
;
}
/**
* @version 1.2.300
* 一定期間(90日)アプリロックチェック
* @return true:アプリロックする、false:アプリロックしない
*/
protected
boolean
checkForceLoginPeriodically
()
{
// サービスオプションチェック
if
(
AbstractLogic
.
getLogic
(
ContractLogic
.
class
).
getForceLoginPeriodically
())
{
long
leavedAppTime
=
getUserPref
(
UserPrefKey
.
LEAVE_APP
,
-
1L
);
...
...
@@ -496,16 +512,11 @@ public abstract class ABVActivity extends Activity {
Date
leavedAppDate
=
new
Date
(
leavedAppTime
);
Date
currentDate
=
new
Date
(
System
.
currentTimeMillis
());
if
(
currentDate
.
after
(
DateTimeUtil
.
add
(
leavedAppDate
,
DateUnit
.
Day
,
ABVEnvironment
.
LastLoginExpiryDate
)))
{
callLoginActivity
(
false
,
true
,
false
);
result
=
true
;
}
return
true
;
}
}
}
catch
(
Exception
e
)
{
result
=
false
;
Logger
.
e
(
"Exception LoginTimeOutCheck"
,
e
);
}
return
result
;
return
false
;
}
// 一定期間経過後強制ログアウトチェック
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
52f75401
...
...
@@ -474,6 +474,10 @@ public class OperationListActivity extends ABVUIActivity {
public
void
onResume
()
{
Logger
.
i
(
TAG
,
"onResume:start"
);
super
.
onResume
();
//アプリロック状態の場合、何もしない。
if
(
checkForceLoginPeriodically
())
{
return
;
}
if
(
isShowingBatchSync
())
{
// 一括同期中の場合何もしない
return
;
...
...
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