mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-30 09:41:33 -05:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user