mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-25 16:13:36 -04:00
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:
@@ -670,6 +670,11 @@ public class App extends ValueObject implements Comparable<App>, Parcelable {
|
||||
if (TextUtils.isEmpty(iconFromApk)){
|
||||
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;
|
||||
if (repo.version >= Repo.VERSION_DENSITY_SPECIFIC_ICONS) {
|
||||
iconsDir = Utils.getIconsDir(context, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user