since we have background index updates, we can increase the amount of files in a refresh for which we need to show progress

This commit is contained in:
Dmitry Jemerov
2009-10-07 21:00:19 +04:00
parent 725ef8a483
commit 1817b439cf
@@ -159,7 +159,7 @@ public class RefreshSessionImpl extends RefreshSession {
final SyncSession syncSession = synchronizer.collectFilesToUpdate();
int filesCount = syncSession.getFilesToUpdate().size();
if (filesCount > 0) {
boolean runWithProgress = !ApplicationManager.getApplication().isUnitTestMode() && filesCount > 5;
boolean runWithProgress = !ApplicationManager.getApplication().isUnitTestMode() && filesCount > 50;
if (runWithProgress) {
Runnable process = new Runnable() {
public void run() {