Commit 5af55ddd by NGUYEN HOANG SON

delay auto sync 100ms

parent 63b27ee5
...@@ -543,7 +543,13 @@ public class OperationListActivity extends OperationActivity { ...@@ -543,7 +543,13 @@ public class OperationListActivity extends OperationActivity {
// 作業指示・報告からプロジェクト一覧へ戻った時の同期処理 // 作業指示・報告からプロジェクト一覧へ戻った時の同期処理
if (ABVEnvironment.getInstance().networkAdapter.isNetworkConnected()) { if (ABVEnvironment.getInstance().networkAdapter.isNetworkConnected()) {
if (isAutoSync()) { if (isAutoSync()) {
handler.postDelayed(new Runnable() {
@Override
public void run() {
autoSyncOperation(); autoSyncOperation();
}
}, 100);
} else { } else {
final long operationId = getUserPref(AppDefType.UserPrefKey.SYNC_TARGET_OPERATION_ID, -1L); final long operationId = getUserPref(AppDefType.UserPrefKey.SYNC_TARGET_OPERATION_ID, -1L);
if (operationId != -1) { if (operationId != -1) {
......
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