Hard-code number of UIL threads to 4

Making them dependant on the number of processors doesn't make much sense...
This commit is contained in:
Daniel Martí 2014-05-01 18:45:43 +02:00
parent d80eec031c
commit 253c880595

View File

@ -154,7 +154,7 @@ public class FDroidApp extends Application {
// 30 days in secs: 30*24*60*60 = 2592000
2592000)
)
.threadPoolSize(Runtime.getRuntime().availableProcessors() * 2)
.threadPoolSize(4)
.threadPriority(Thread.NORM_PRIORITY - 2) // Default is NORM_PRIORITY - 1
.build();
ImageLoader.getInstance().init(config);