mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	
							parent
							
								
									154f1622b2
								
							
						
					
					
						commit
						293cccd897
					
				
					 3 changed files with 12 additions and 3 deletions
				
			
		|  | @ -263,6 +263,9 @@ public class CategoryImagesListFragment extends DaggerFragment { | ||||||
|      * @return  GridView Adapter |      * @return  GridView Adapter | ||||||
|      */ |      */ | ||||||
|     public ListAdapter getAdapter() { |     public ListAdapter getAdapter() { | ||||||
|  |         if(gridView == null) { | ||||||
|  |             return null; | ||||||
|  |         } | ||||||
|         return gridView.getAdapter(); |         return gridView.getAdapter(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -125,7 +125,9 @@ public class SearchImageFragment extends CommonsDaggerSupportFragment { | ||||||
|      */ |      */ | ||||||
|     public void updateImageList(String query) { |     public void updateImageList(String query) { | ||||||
|         this.query = query; |         this.query = query; | ||||||
|  |         if(imagesNotFoundView != null) { | ||||||
|             imagesNotFoundView.setVisibility(GONE); |             imagesNotFoundView.setVisibility(GONE); | ||||||
|  |         } | ||||||
|         if(!NetworkUtils.isInternetConnectionEstablished(getContext())) { |         if(!NetworkUtils.isInternetConnectionEstablished(getContext())) { | ||||||
|             handleNoInternet(); |             handleNoInternet(); | ||||||
|             return; |             return; | ||||||
|  |  | ||||||
|  | @ -45,8 +45,12 @@ public class FileUtils { | ||||||
|             e.printStackTrace(); |             e.printStackTrace(); | ||||||
|         } finally { |         } finally { | ||||||
|             try { |             try { | ||||||
|  |                 if(out != null) { | ||||||
|                     out.close(); |                     out.close(); | ||||||
|  |                 } | ||||||
|  |                 if(in != null) { | ||||||
|                     in.close(); |                     in.close(); | ||||||
|  |                 } | ||||||
|             } catch (IOException e) { |             } catch (IOException e) { | ||||||
|                 e.printStackTrace(); |                 e.printStackTrace(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Henrique Guedes
						Henrique Guedes