do not disable update button because of antifeatures

This testing at the wrong point, namely in the app details where you are
already looking at the antifeatures which might be present.
In the list view there's an additional direct check with
isDisabledByAntiFeatures() anyway.

Fix fdroid/fdroidclient#1845
This commit is contained in:
Marcus Hoffmann 2020-02-25 15:47:33 +01:00
parent bc36e92731
commit 03600c347c

View File

@ -1051,7 +1051,7 @@ public class App extends ValueObject implements Comparable<App>, Parcelable {
boolean canUpdate = hasUpdates();
AppPrefs prefs = getPrefs(context);
boolean wantsUpdate = !prefs.ignoreAllUpdates && prefs.ignoreThisUpdate < autoInstallVersionCode;
return canUpdate && wantsUpdate && !isDisabledByAntiFeatures();
return canUpdate && wantsUpdate;
}
/**