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
2cb30549
Commit
2cb30549
authored
Jun 01, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/1.4.500_dev' into 'features/1.4.500'
開発テストで見つかった不具合を修正 See merge request
!317
parents
7917561a
6bc8d530
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
13 deletions
+55
-13
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/ABVDataCache.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
+20
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/AgreementToTermsHelper.java
+18
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/LogoutHelper.java
+16
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/LoginPasswordChangeActivity.java
+0
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/ABVDataCache.java
View file @
2cb30549
...
...
@@ -71,7 +71,7 @@ public class ABVDataCache {
* @return サービスオプション情報です。指定したserviceOptionIdがサービスオプションリストに存在しない場合はnullを返します。
* @since 1.0.0
*/
public
ServiceOptionDto
getServiceOption
(
int
serviceOptionId
)
{
public
synchronized
ServiceOptionDto
getServiceOption
(
int
serviceOptionId
)
{
if
(
serviceOptionDtoList
!=
null
)
{
for
(
ServiceOptionDto
serviceOptionDto
:
Collections
.
unmodifiableCollection
(
serviceOptionDtoList
))
{
if
(
serviceOptionDto
.
serviceOptionId
==
serviceOptionId
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
View file @
2cb30549
package
jp
.
agentec
.
abook
.
abv
.
ui
.
common
.
activity
;
import
android.app.AlertDialog
;
import
android.app.DownloadManager
;
import
android.app.DownloadManager.Request
;
import
android.content.Context
;
...
...
@@ -36,6 +37,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
;
...
...
@@ -77,8 +79,14 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
protected
void
onStop
()
{
super
.
onStop
();
ABVViewUnbindHelper
.
unbindReferences
(
getContentViewId
());
AlertDialog
dialog
=
AgreementToTermsHelper
.
getCurrentDialog
();
if
(
dialog
!=
null
&&
dialog
.
isShowing
())
{
dialog
.
dismiss
();
LogoutHelper
.
logout
(
this
,
false
);
}
}
protected
abstract
View
getContentViewId
();
/**
...
...
@@ -126,11 +134,16 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
logoutAlert
(
R
.
string
.
failed_to_get_terms_of_service
);
}
private
void
logoutAlert
(
int
messageRes
)
{
AlertDialogUtil
.
showAlertDialog
(
ABVNoAuthenticatedActivity
.
this
,
R
.
string
.
app_name
,
messageRes
,
true
,
new
DialogInterface
.
OnClickListener
()
{
private
void
logoutAlert
(
final
int
messageRes
)
{
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
LogoutHelper
.
logout
(
ABVNoAuthenticatedActivity
.
this
);
public
void
run
()
{
AlertDialogUtil
.
showAlertDialog
(
ABVNoAuthenticatedActivity
.
this
,
R
.
string
.
app_name
,
messageRes
,
true
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
LogoutHelper
.
logout
(
ABVNoAuthenticatedActivity
.
this
);
}
});
}
});
}
...
...
@@ -273,6 +286,8 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
private
void
showMain
()
{
try
{
ContractLogic
contractLogic
=
AbstractLogic
.
getLogic
(
ContractLogic
.
class
);
contractLogic
.
initializeContractServiceOption
();
try
{
final
ABVDataCache
dataCache
=
ABVDataCache
.
getInstance
();
dataCache
.
refreshServiceOptions
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/AgreementToTermsHelper.java
View file @
2cb30549
...
...
@@ -48,6 +48,17 @@ public class AgreementToTermsHelper {
void
onError
(
Exception
e
);
}
private
static
AlertDialog
currentDialog
=
null
;
private
static
synchronized
void
setCurrentDialog
(
AlertDialog
dialog
)
{
currentDialog
=
dialog
;
}
public
static
synchronized
AlertDialog
getCurrentDialog
()
{
return
currentDialog
;
}
/**
* 同意規約情報を読み込んで、バージョンが異なっていたら、ダイアログを表示
* バージョンが同じだったら何もしない
...
...
@@ -122,6 +133,13 @@ public class AgreementToTermsHelper {
params
.
width
=
disp
.
getWidth
()
*
4
/
5
;
}
dialog
.
getWindow
().
setAttributes
(
params
);
dialog
.
setOnDismissListener
(
new
DialogInterface
.
OnDismissListener
()
{
@Override
public
void
onDismiss
(
DialogInterface
dialog
)
{
setCurrentDialog
(
null
);
}
});
setCurrentDialog
(
dialog
);
}
catch
(
Exception
e
)
{
listener
.
onError
(
e
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/LogoutHelper.java
View file @
2cb30549
...
...
@@ -27,6 +27,16 @@ public class LogoutHelper {
* @param activity 呼び出し元アクティビティ
*/
public
static
void
logout
(
Activity
activity
)
{
logout
(
activity
,
true
);
}
/**
* ログアウトして、ログイン画面に遷移する
*
* @param activity 呼び出し元アクティビティ
* @param launchLogin trueならLoginActivityをstart
*/
public
static
void
logout
(
Activity
activity
,
boolean
launchLogin
)
{
try
{
// modify by Jang 2013.06.20
UserAuthenticateLogic
user
=
AbstractLogic
.
getLogic
(
UserAuthenticateLogic
.
class
);
...
...
@@ -50,10 +60,11 @@ public class LogoutHelper {
SharedPreferences
sharedPreferences
=
activity
.
getSharedPreferences
(
AppDefType
.
PrefName
.
USER_PREFERENCE
,
Context
.
MODE_PRIVATE
);
sharedPreferences
.
edit
().
remove
(
AppDefType
.
UserPrefKey
.
GUEST_LOGIN
).
apply
();
Intent
intent
=
new
Intent
(
activity
,
LoginActivity
.
class
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NO_HISTORY
);
activity
.
startActivity
(
intent
);
activity
.
finish
();
if
(
launchLogin
)
{
Intent
intent
=
new
Intent
(
activity
,
LoginActivity
.
class
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NO_HISTORY
);
activity
.
startActivity
(
intent
);
activity
.
finish
();
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/LoginPasswordChangeActivity.java
View file @
2cb30549
...
...
@@ -86,7 +86,6 @@ public class LoginPasswordChangeActivity extends ABVNoAuthenticatedActivity {
if
(
mType
==
1
||
mType
==
2
)
{
// 催促
showMainActivity
(
mLoginId
);
finish
();
}
else
{
finishActivity
();
}
...
...
@@ -177,7 +176,6 @@ public class LoginPasswordChangeActivity extends ABVNoAuthenticatedActivity {
ABVToastUtil
.
showMakeText
(
LoginPasswordChangeActivity
.
this
,
getString
(
R
.
string
.
change_password_ok
),
Toast
.
LENGTH_LONG
);
showMainActivity
(
mLoginId
);
finish
();
}
catch
(
NetworkDisconnectedException
e
)
{
Logger
.
e
(
"NetworkDisconnectedException"
,
e
);
handleErrorMessageToast
(
ErrorCode
.
NETWORK
);
...
...
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