Commit 52d672c6 by Kazuyuki Hida

ダッシュボードに戻った時に、最新の状態に表示を更新するようにした。

parent 7e53583d
...@@ -254,12 +254,6 @@ public class OperationLogic extends AbstractLogic { ...@@ -254,12 +254,6 @@ public class OperationLogic extends AbstractLogic {
String operationTaskDirPath = ABVEnvironment.getInstance().getOperationDirFile(deleteOperationDto.operationId); String operationTaskDirPath = ABVEnvironment.getInstance().getOperationDirFile(deleteOperationDto.operationId);
FileUtil.delete(operationTaskDirPath); FileUtil.delete(operationTaskDirPath);
} }
// 一通りの更新が終わってから、ダッシュボード用の情報を取得する
// todo
Logger.i(TAG, "update tasks on dashboard");
ReportStatusLogic logic = new ReportStatusLogic();
logic.loadReportStatus();
} }
/** /**
......
...@@ -43,6 +43,7 @@ import jp.agentec.abook.abv.bl.dto.comparator.ReportStatusCompalator; ...@@ -43,6 +43,7 @@ import jp.agentec.abook.abv.bl.dto.comparator.ReportStatusCompalator;
import jp.agentec.abook.abv.bl.logic.AbstractLogic; import jp.agentec.abook.abv.bl.logic.AbstractLogic;
import jp.agentec.abook.abv.bl.logic.LockReportLogic; import jp.agentec.abook.abv.bl.logic.LockReportLogic;
import jp.agentec.abook.abv.bl.logic.OperationLogic; import jp.agentec.abook.abv.bl.logic.OperationLogic;
import jp.agentec.abook.abv.bl.logic.ReportStatusLogic;
import jp.agentec.abook.abv.bl.logic.UnlockReportLogic; import jp.agentec.abook.abv.bl.logic.UnlockReportLogic;
import jp.agentec.abook.abv.launcher.android.R; import jp.agentec.abook.abv.launcher.android.R;
import jp.agentec.abook.abv.ui.common.constant.ErrorCode; import jp.agentec.abook.abv.ui.common.constant.ErrorCode;
...@@ -119,6 +120,8 @@ public class DashboardActivity extends OperationActivity { ...@@ -119,6 +120,8 @@ public class DashboardActivity extends OperationActivity {
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
try { try {
ReportStatusLogic logic = new ReportStatusLogic();
logic.loadReportStatus();
getReportStatusCount(); getReportStatusCount();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
......
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