1
У меня есть проблема с Пикассо, я получил аварии:Picasso Библиотека Исключение аварий
Fatal Exception: java.util.concurrent.RejectedExecutionException: Task [email protected]a39a38 rejected from [email protected][Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1967)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:782)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1303)
at com.squareup.picasso.PicassoExecutorService.submit(PicassoExecutorService.java:88)
at com.squareup.picasso.Dispatcher.performSubmit(Dispatcher.java:202)
at com.squareup.picasso.Dispatcher.performSubmit(Dispatcher.java:175)
at com.squareup.picasso.Dispatcher$DispatcherHandler.handleMessage(Dispatcher.java:482)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:153)
at android.os.HandlerThread.run(HandlerThread.java:60)
Это, как я создаю Пикассо в onResume():
final Picasso.Builder builder = new Picasso.Builder(context);
builder.indicatorsEnabled(BuildConfig.DEBUG);
builder.defaultBitmapConfig(Bitmap.Config.RGB_565);
final long cacheSize = (long) (getAvailableRam() * 0.5F);
builder.memoryCache(new LruCache((int) cacheSize));
builder.listener(_listener);
_picasso = builder.build();
и OnPause():
if (_picasso != null) {
_picasso.shutdown();
_picasso = null;
}
Любые предложения?