ignore xml icons
They will never work, they should not be set by fdroidserver but we can be defensive about not returning them to any views here.
This commit is contained in:
		
							parent
							
								
									bc6e5e8433
								
							
						
					
					
						commit
						56c05933a2
					
				| @ -670,6 +670,11 @@ public class App extends ValueObject implements Comparable<App>, Parcelable { | |||||||
|             if (TextUtils.isEmpty(iconFromApk)){ |             if (TextUtils.isEmpty(iconFromApk)){ | ||||||
|                 return null; |                 return null; | ||||||
|             } |             } | ||||||
|  |             if (iconFromApk.endsWith(".xml")){ | ||||||
|  |                 // We cannot use xml ressources as icons. F-Droid server should not include them | ||||||
|  |                 // https://gitlab.com/fdroid/fdroidserver/issues/344 | ||||||
|  |                 return null; | ||||||
|  |             } | ||||||
|             String iconsDir; |             String iconsDir; | ||||||
|             if (repo.version >= Repo.VERSION_DENSITY_SPECIFIC_ICONS) { |             if (repo.version >= Repo.VERSION_DENSITY_SPECIFIC_ICONS) { | ||||||
|                 iconsDir = Utils.getIconsDir(context, 1.0); |                 iconsDir = Utils.getIconsDir(context, 1.0); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Marcus Hoffmann
						Marcus Hoffmann