Commit d0196198 by Lee Munkyeong

課題票75対応

parent 4e58c35a
...@@ -240,6 +240,40 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity { ...@@ -240,6 +240,40 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
// ログ送信可否を確認 // ログ送信可否を確認
LogUtil.checkSendLogFlag(); LogUtil.checkSendLogFlag();
} }
} catch (NetworkDisconnectedException e) {
stopUpdateAnimation();
if (startRefresh) {
startRefresh = false;
}
throw e;
} catch (ABVException e) {
stopUpdateAnimation();
switch (e.getCode()) {
case C_I_CONTENT_0001:
handleErrorMessageToast(ABVExceptionCode.C_I_CONTENT_0001);
break;
case S_E_ACMS_1403:
// 再ログイン
onAuthenticationFailed();
break;
case C_I_CONTENT_0002:
// コンテンツダウンロード中は自動更新を行わない。
if (!isAutoRefresh) {
handleErrorMessageToast(ABVExceptionCode.C_I_CONTENT_0002);
}
break;
case S_E_ACMS_0500:
handleErrorMessageToast(ABVExceptionCode.S_E_ACMS_0500);
break;
case S_E_ACMS_INVALID_RESPONSE:
// サーバー通信エラー時、エラーメッセージ表示
handleErrorMessageToast(ABVExceptionCode.S_E_ACMS_INVALID_RESPONSE);
break;
default:
Logger.e(TAG, "Exception DataRefresh", e);
handleErrorMessageToast(ErrorCode.E107);
break;
}
} catch (Exception e) { } catch (Exception e) {
stopUpdateAnimation(); stopUpdateAnimation();
if (startRefresh) { if (startRefresh) {
......
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