Re-enable loading of icons with fling

Reduce their thread priority to try to avoid it from lagging the scrolling
This commit is contained in:
Daniel Martí 2014-05-01 16:03:56 +02:00
parent 097be4396e
commit d80eec031c
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ import org.thoughtcrime.ssl.pinning.SystemKeyStore;
import javax.net.ssl.*;
import java.io.File;
import java.lang.Thread;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
@ -154,6 +155,7 @@ public class FDroidApp extends Application {
2592000)
)
.threadPoolSize(Runtime.getRuntime().availableProcessors() * 2)
.threadPriority(Thread.NORM_PRIORITY - 2) // Default is NORM_PRIORITY - 1
.build();
ImageLoader.getInstance().init(config);

View File

@ -63,7 +63,6 @@ abstract public class AppListFragment extends ListFragment implements
// onActivityCreated" according to the docs.
getListView().setFastScrollEnabled(true);
getListView().setOnItemClickListener(this);
getListView().setOnScrollListener(new PauseOnScrollListener(ImageLoader.getInstance(), false, true));
}
@Override