Commit 0af7b9ef by Kazuyuki Hida

ログイン直後の規約同意で、規約内容の取得に失敗した場合、ログアウトするようにした。

parent 2291d680
...@@ -92,7 +92,12 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity { ...@@ -92,7 +92,12 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
*/ */
protected void showMainActivity(String loginId) { protected void showMainActivity(String loginId) {
confirmResult = AgreementToTermsActivity.confirmAgreement(this, REQUEST_AGREEMENT_FROM_LOGIN, isNormalSize(), null); confirmResult = AgreementToTermsActivity.confirmAgreement(this, REQUEST_AGREEMENT_FROM_LOGIN, isNormalSize(), new Runnable() {
@Override
public void run() {
LogoutHelper.logout(ABVNoAuthenticatedActivity.this);
}
});
switch (confirmResult) { switch (confirmResult) {
case DISABLE: case DISABLE:
case EMPTY: case EMPTY:
...@@ -101,8 +106,6 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity { ...@@ -101,8 +106,6 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
doShowMainActivity(); doShowMainActivity();
break; break;
case FAILED: case FAILED:
confirmResult = AgreementToTermsActivity.Result.AGREED;
doShowMainActivity();
break; break;
case CONFIRM: case CONFIRM:
// onActivityResultを待つ // onActivityResultを待つ
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment