25
25
import com .nostra13 .universalimageloader .cache .disc .impl .UnlimitedDiscCache ;
26
26
import com .nostra13 .universalimageloader .cache .disc .naming .FileNameGenerator ;
27
27
import com .nostra13 .universalimageloader .cache .memory .MemoryCacheAware ;
28
- import com .nostra13 .universalimageloader .core .assist .FailReason ;
29
- import com .nostra13 .universalimageloader .core .assist .ImageLoadingListener ;
30
28
import com .nostra13 .universalimageloader .core .assist .QueueProcessingType ;
31
29
import com .nostra13 .universalimageloader .core .download .ImageDownloader ;
32
30
import com .nostra13 .universalimageloader .core .download .NetworkDeniedImageDownloader ;
@@ -64,7 +62,6 @@ public final class ImageLoaderConfiguration {
64
62
final int threadPoolSize ;
65
63
final int threadPriority ;
66
64
final QueueProcessingType tasksProcessingType ;
67
- final boolean handleOutOfMemory ;
68
65
69
66
final MemoryCacheAware <String , Bitmap > memoryCache ;
70
67
final DiscCacheAware discCache ;
@@ -89,7 +86,6 @@ private ImageLoaderConfiguration(final Builder builder) {
89
86
threadPoolSize = builder .threadPoolSize ;
90
87
threadPriority = builder .threadPriority ;
91
88
tasksProcessingType = builder .tasksProcessingType ;
92
- handleOutOfMemory = builder .handleOutOfMemory ;
93
89
discCache = builder .discCache ;
94
90
memoryCache = builder .memoryCache ;
95
91
defaultDisplayImageOptions = builder .defaultDisplayImageOptions ;
@@ -168,7 +164,6 @@ public static class Builder {
168
164
private int threadPoolSize = DEFAULT_THREAD_POOL_SIZE ;
169
165
private int threadPriority = DEFAULT_THREAD_PRIORITY ;
170
166
private boolean denyCacheImageMultipleSizesInMemory = false ;
171
- private boolean handleOutOfMemory = true ;
172
167
private QueueProcessingType tasksProcessingType = DEFAULT_TASK_PROCESSING_TYPE ;
173
168
174
169
private int memoryCacheSize = DEFAULT_MEMORY_CACHE_SIZE ;
@@ -317,17 +312,6 @@ public Builder denyCacheImageMultipleSizesInMemory() {
317
312
return this ;
318
313
}
319
314
320
- /**
321
- * ImageLoader try clean memory and re-display image it self when {@link OutOfMemoryError} occurs. You can
322
- * switch off this feature by this method and process error by your way (you can know that
323
- * {@link OutOfMemoryError} occurred if you got {@link FailReason#OUT_OF_MEMORY} in
324
- * {@link ImageLoadingListener#onLoadingFailed(FailReason)}).
325
- */
326
- public Builder offOutOfMemoryHandling () {
327
- this .handleOutOfMemory = false ;
328
- return this ;
329
- }
330
-
331
315
/**
332
316
* Sets type of queue processing for tasks for loading and displaying images.<br />
333
317
* Default value - {@link QueueProcessingType#FIFO}
0 commit comments