mirror of
				https://github.com/pierre42100/ComunicAndroid
				synced 2025-11-04 11:34:06 +00:00 
			
		
		
		
	Try to fix issue.
This commit is contained in:
		@@ -101,6 +101,7 @@ public class ImageLoadHelper {
 | 
				
			|||||||
    private static void clean(){
 | 
					    private static void clean(){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //Get the list of threads
 | 
					        //Get the list of threads
 | 
				
			||||||
 | 
					        int i = 0;
 | 
				
			||||||
        for(View view : threads.keySet()){
 | 
					        for(View view : threads.keySet()){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if(threads.get(view) != null)
 | 
					            if(threads.get(view) != null)
 | 
				
			||||||
@@ -108,6 +109,10 @@ public class ImageLoadHelper {
 | 
				
			|||||||
                if(!threads.get(view).isAlive())
 | 
					                if(!threads.get(view).isAlive())
 | 
				
			||||||
                    threads.remove(view);
 | 
					                    threads.remove(view);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            //Avoid ArrayIndexOutOfBoundsException
 | 
				
			||||||
 | 
					            i++;
 | 
				
			||||||
 | 
					            if(threads.size() < i)
 | 
				
			||||||
 | 
					                return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user