mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-19 21:19:16 -04:00
No point in skipping non-free apps during update checks
This commit is contained in:
@@ -80,19 +80,11 @@ public class PlayStoreApiWrapper {
|
||||
|
||||
public List<App> getDetails(List<String> packageIds) throws IOException {
|
||||
List<App> apps = new ArrayList<>();
|
||||
int i = -1;
|
||||
boolean hideNonFree = PreferenceActivity.getBoolean(context, PreferenceActivity.PREFERENCE_HIDE_NONFREE_APPS);
|
||||
for (BulkDetailsEntry details: new PlayStoreApiAuthenticator(context).getApi().bulkDetails(packageIds).getEntryList()) {
|
||||
i++;
|
||||
if (!details.hasDoc()) {
|
||||
continue;
|
||||
}
|
||||
App app = AppBuilder.build(details.getDoc());
|
||||
if (hideNonFree && !app.isFree()) {
|
||||
Log.i(this.getClass().getName(), "Skipping non-free app " + packageIds.get(i));
|
||||
continue;
|
||||
}
|
||||
apps.add(app);
|
||||
apps.add(AppBuilder.build(details.getDoc()));
|
||||
}
|
||||
Collections.sort(apps);
|
||||
return apps;
|
||||
|
||||
Reference in New Issue
Block a user