`isLocalized` always false when only contains english
- Device OS and version: OnePlus 7T Pro
- Device model/manufacturer: OnePlus
- F-Droid version (in the About screen): 1.8-alpha2...
- F-Droid privileged extension version (if installed): No
What did you do? (clear steps if possible)
- Added my repo
- Navigated to Whats New view
What did you expect to see?
My app listed in Whats New view
What did you see instead?
An empty view
When using F-Droid on a device in a none English based locale this code is added to the query:
if (!"en".equals(Locale.getDefault().getLanguage())) {
// only require localization if using a non-English locale
selection += " AND " + AppMetadataTable.NAME + "." + AppMetadataTable.Cols.IS_LOCALIZED + " = 1";
}
But if you only have 1 locale (English) the value will always be false
and the app wont be listed.
if (localized.size() > 1) {
isLocalized = true;
}
However I still want my app listed in the Whats New view. Any suggested what I could do or if a behaviour change in the code is possible? I am happy to make a MR for it.