Skip to content

Commit

Permalink
Issue #322 a dummy request to check if token is stale before the upda…
Browse files Browse the repository at this point in the history
…te check request
  • Loading branch information
yeriomin committed Nov 9, 2017
1 parent b73bedb commit 693f0fc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@
import java.util.Map;
import java.util.Set;

import static com.github.yeriomin.playstoreapi.GooglePlayAPI.FDFE_URL;

public class UpdatableAppsTask extends RemoteAppListTask {

protected List<App> updatableApps = new ArrayList<>();

@Override
protected List<App> getResult(GooglePlayAPI api, String... packageNames) throws IOException {
api.genericGet(FDFE_URL + "toc", null);
Map<String, App> installedApps = getInstalledApps();
for (App appFromMarket: getAppsFromPlayStore(api, filterBlacklistedApps(installedApps).keySet())) {
String packageName = appFromMarket.getPackageName();
Expand Down

0 comments on commit 693f0fc

Please sign in to comment.