respond to onLowMemory/onTrimMemory by clearing UIL memory cache
This commit is contained in:
		
							parent
							
								
									6e64438fa6
								
							
						
					
					
						commit
						504286d44b
					
				| @ -297,6 +297,20 @@ public class FDroidApp extends Application { | ||||
|         atStartTime.edit().putString(lastLocaleKey, currentLocale).apply(); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void onTrimMemory(int level) { | ||||
|         super.onTrimMemory(level); | ||||
|         if (level >= TRIM_MEMORY_BACKGROUND) { | ||||
|             ImageLoader.getInstance().clearMemoryCache(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void onLowMemory() { | ||||
|         super.onLowMemory(); | ||||
|         ImageLoader.getInstance().clearMemoryCache(); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void onCreate() { | ||||
|         super.onCreate(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hans-Christoph Steiner
						Hans-Christoph Steiner