Skip to content

Commit

Permalink
Fiixing bug wth notification progress when more than one source was s…
Browse files Browse the repository at this point in the history
…elected.
  • Loading branch information
rumboalla committed Aug 26, 2016
1 parent 90b7ca9 commit 47b2877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/apkupdater/service/UpdaterService.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public void checkForUpdates(
List<InstalledApp> installedApps = mInstalledAppUtil.getInstalledApps(getBaseContext());

// Create the notification
mNotification = new UpdaterNotification(getBaseContext(), installedApps.size());
int multiplier = (options.useAPKMirror() ? 1 : 0) + (options.useAPKPure() ? 1 : 0) + (options.useGooglePlay() ? 1 : 0) ;
mNotification = new UpdaterNotification(getBaseContext(), installedApps.size() * multiplier);

// Create an executor with 10 threads to perform the requests
ExecutorService executor = Executors.newFixedThreadPool(10);
Expand Down

0 comments on commit 47b2877

Please sign in to comment.