Commit d58c5395 by onuma

Merge branch 'features/1.2.360_40863' into features/1.2.360

parents 8a3a7cc6 f914fe10
......@@ -102,7 +102,19 @@ public class ABookCheckWebViewHelper extends ABookHelper {
switch (cmd) {
case ABookKeys.CMD_INSERT_TASK_REPORT:
case ABookKeys.CMD_UPDATE_TASK_REPORT:
insertOrUpdateTaskReport(taskKey, enableReportHistory, operationId, contentId, param, contentPath, reportType, taskReportLevel, false);
// insertOrupdateTaskReport内で、org.json.adf.JSONExceptionが発生した時があった。
// その時に呼び出し元で表示したダイアログが閉じずに、操作不能となったので、
// mFinishCallBackに、エラーを通知しダイアログを閉じる処理を追加した。
// TODO: 失敗するのであれば、データが壊れているわけなので、壊れたデータを削除する必要があるのでは?
try {
insertOrUpdateTaskReport(taskKey, enableReportHistory, operationId, contentId, param, contentPath, reportType, taskReportLevel, false);
} catch (Exception e) {
context.showSimpleAlertDialog(R.string.error, R.string.ERROR);
Logger.e(TAG,e);
mFinishCallback.callback(true);
context.closeProgressPopup();
throw e;
}
copyTaskAttachedMovie(operationId, contentId, taskKey, taskReportLevel, processKey, phaseNo);
sendTaskData(context, operationId, taskKey, taskReportLevel, reportType, contentPath);
break;
......
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