Commit f914fe10 by onuma

#40863 報告ができない連続作業に報告した際、処理待ち状態になる

parent 8a3a7cc6
...@@ -102,7 +102,19 @@ public class ABookCheckWebViewHelper extends ABookHelper { ...@@ -102,7 +102,19 @@ public class ABookCheckWebViewHelper extends ABookHelper {
switch (cmd) { switch (cmd) {
case ABookKeys.CMD_INSERT_TASK_REPORT: case ABookKeys.CMD_INSERT_TASK_REPORT:
case ABookKeys.CMD_UPDATE_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); copyTaskAttachedMovie(operationId, contentId, taskKey, taskReportLevel, processKey, phaseNo);
sendTaskData(context, operationId, taskKey, taskReportLevel, reportType, contentPath); sendTaskData(context, operationId, taskKey, taskReportLevel, reportType, contentPath);
break; 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