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
d3aea6cc
Commit
d3aea6cc
authored
May 29, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不要なコードを削除
parent
9ae2850b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
53 deletions
+10
-53
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
+0
-29
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/AgreementToTermsHelper.java
+6
-16
gradle.properties
+4
-8
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
View file @
d3aea6cc
...
...
@@ -63,9 +63,6 @@ import jp.agentec.adf.util.StringUtil;
public
abstract
class
ABVNoAuthenticatedActivity
extends
ABVActivity
{
private
static
final
String
TAG
=
"ABVNoAuthenticatedActivity"
;
private
static
final
int
REQUEST_AGREEMENT
=
120391
;
// ユニークで適当な値
private
static
final
int
REQUEST_AGREEMENT_FROM_LOGIN
=
120392
;
// ユニークで適当な値
private
final
Context
mContext
=
ABVNoAuthenticatedActivity
.
this
;
@Override
...
...
@@ -475,35 +472,9 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
doMoveToHome
();
}
};
AgreementToTermsHelper
.
clearVersion
(
this
);
// for debug
AgreementToTermsHelper
.
confirmAgreement
(
this
,
isNormalSize
(),
listener
);
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
if
(
requestCode
==
REQUEST_AGREEMENT
)
{
if
(
resultCode
==
RESULT_OK
)
{
// 同意したら初期化
doMoveToHome
();
}
else
{
// 規約に同意しなかったので、ログアウト
LogoutHelper
.
logout
(
this
);
}
}
if
(
requestCode
==
REQUEST_AGREEMENT_FROM_LOGIN
)
{
if
(
resultCode
==
RESULT_OK
)
{
// 同意したら初期化
doShowMainActivity
();
}
else
{
// 規約に同意しなかったので、ログアウト
LogoutHelper
.
logout
(
this
);
}
}
}
private
void
doMoveToHome
()
{
Bundle
extras
=
getIntent
().
getExtras
();
Intent
intent
=
new
Intent
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/helper/AgreementToTermsHelper.java
View file @
d3aea6cc
...
...
@@ -63,7 +63,7 @@ public class AgreementToTermsHelper {
CommonExecutor
.
execute
(
new
Runnable
()
{
@Override
public
void
run
()
{
AgreementToTermsJSON
termsJSON
=
null
;
AgreementToTermsJSON
termsJSON
;
try
{
AgreementToTermsLogic
logic
=
AbstractLogic
.
getLogic
(
AgreementToTermsLogic
.
class
);
termsJSON
=
logic
.
getTerms
();
...
...
@@ -75,13 +75,8 @@ public class AgreementToTermsHelper {
if
(
getLatestVersion
(
context
).
equals
(
termsJSON
.
getTermsVersion
()))
{
// 規約のバージョンが、すでに同意しているものと同じときは表示しない
listener
.
onAgreed
();
return
;
}
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
e
);
// 取得に失敗した場合
listener
.
onFailed
(
e
);
}
finally
{
assert
termsJSON
!=
null
;
// nullなら onEmpty()に流れているはず
final
AgreementToTermsJSON
termsJSON1
=
termsJSON
;
context
.
runOnUiThread
(
new
Runnable
()
{
@Override
...
...
@@ -91,6 +86,10 @@ public class AgreementToTermsHelper {
showAgreementDialog
(
context
,
termsJSON1
,
isNomalSize
,
listener
);
}
});
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
e
);
// 取得に失敗した場合
listener
.
onFailed
(
e
);
}
}
});
...
...
@@ -253,13 +252,4 @@ public class AgreementToTermsHelper {
private
static
void
setLatestVersion
(
Context
context
,
String
version
)
{
PreferenceUtil
.
putUserPref
(
context
,
ABookKeys
.
AGREEMENT_TO_TERMS_VERSION
,
version
);
}
/**
* バージョン情報のクリア(後で消す)
*
* @param context コンテクスト
*/
public
static
void
clearVersion
(
Context
context
)
{
PreferenceUtil
.
removeUserPref
(
context
,
ABookKeys
.
AGREEMENT_TO_TERMS_VERSION
);
}
}
gradle.properties
View file @
d3aea6cc
...
...
@@ -38,16 +38,12 @@ app_versioncode=1
# abvEnvironments.xml
#cms server
#acms_address=https://chatdev2.agentec.jp/acms
#download_server_address=https://chatdev2.agentec.jp/acms
acms_address
=
https://check130.abook.bz/acms
download_server_address
=
https://check130.abook.bz/acms
acms_address
=
https://chatdev2.agentec.jp/acms
download_server_address
=
https://chatdev2.agentec.jp/acms
#syncview server
#websocket_server_http_url=https://check130.agentec.jp/v1
#websocket_server_ws_url=wss://check130.agentec.jp/v1
websocket_server_http_url
=
https://check130.abook.bz:10443/v1
websocket_server_ws_url
=
wss://check130.abook.bz:10443/v1
websocket_server_http_url
=
https://check130.agentec.jp/v1
websocket_server_ws_url
=
wss://check130.agentec.jp/v1
#WebSocket debug出力
websocket_debug
=
false
...
...
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