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:
Marcus Hoffmann 2020-02-24 16:44:44 +01:00
parent bc6e5e8433
commit 56c05933a2

View File

@ -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);