浏览代码

Increase delay slightly

Mario Danic 8 年之前
父节点
当前提交
ee0c112ffc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/com/owncloud/android/services/FileAlterationMagicListener.java

+ 2 - 2
src/com/owncloud/android/services/FileAlterationMagicListener.java

@@ -119,7 +119,7 @@ public class FileAlterationMagicListener implements FileAlterationListener {
         };
 
         fileRunnable.put(file.getAbsolutePath(), runnable);
-        handler.postDelayed(runnable, 500);
+        handler.postDelayed(runnable, 1500);
 
     }
 
@@ -127,7 +127,7 @@ public class FileAlterationMagicListener implements FileAlterationListener {
     public void onFileChange(File file) {
         if (fileRunnable.containsKey(file.getAbsolutePath())) {
             handler.removeCallbacks(fileRunnable.get(file.getAbsolutePath()));
-            handler.postDelayed(fileRunnable.get(file.getAbsolutePath()), 500);
+            handler.postDelayed(fileRunnable.get(file.getAbsolutePath()), 1500);
         }
     }