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
58d6e72f
Commit
58d6e72f
authored
Jun 01, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
課題5を修正(ただし、タイミングがいまいち)
parent
a6d6e5bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
+18
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
View file @
58d6e72f
...
...
@@ -36,6 +36,7 @@ import jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.data.ABVDataCache
;
import
jp.agentec.abook.abv.bl.logic.AbstractLogic
;
import
jp.agentec.abook.abv.bl.logic.ContractLogic
;
import
jp.agentec.abook.abv.bl.logic.UserAuthenticateLogic
;
import
jp.agentec.abook.abv.cl.environment.NetworkAdapter
;
import
jp.agentec.abook.abv.cl.push.FcmManager
;
...
...
@@ -126,7 +127,7 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
logoutAlert
(
R
.
string
.
failed_to_get_terms_of_service
);
}
private
void
logoutAlert
(
int
messageRes
)
{
private
void
logoutAlert
(
final
int
messageRes
)
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -436,7 +437,22 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
AgreementToTermsHelper
.
AgreementListener
listener
=
new
AgreementToTermsHelper
.
AgreementListener
()
{
@Override
public
void
onDisabled
()
{
onAgreed
();
try
{
// fixme とってつけたような処理なので、もう少しいい感じのタイミングで処理したい
ContractLogic
contractLogic
=
AbstractLogic
.
getLogic
(
ContractLogic
.
class
);
contractLogic
.
initializeContractServiceOption
();
if
(
ABVDataCache
.
getInstance
().
serviceOption
.
isUsableAgreementToTerms
())
{
// サービスオプションが無効としてスルーするという場合には、
// 前回ログインだけしている状態で終了してしまった時に
// サービスオプションが読み込まれていなかったというパターンがあるので、
// 改めて読み込み直して有効だったら、ログアウトする
LogoutHelper
.
logout
(
ABVNoAuthenticatedActivity
.
this
);
}
else
{
onAgreed
();
}
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
e
);
}
}
@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