Commit 0af7b9ef by Kazuyuki Hida

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

parent 2291d680
......@@ -92,7 +92,12 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
*/
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) {
case DISABLE:
case EMPTY:
......@@ -101,8 +106,6 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
doShowMainActivity();
break;
case FAILED:
confirmResult = AgreementToTermsActivity.Result.AGREED;
doShowMainActivity();
break;
case CONFIRM:
// 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