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:
parent
097be4396e
commit
d80eec031c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user