Skip to content

Commit

Permalink
Allow to add multiple apps to check by using the same method. Ref #41
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Feb 25, 2018
1 parent 9c3f723 commit 5f0f190
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.github.javiersantos.piracychecker.enums.PirateApp;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@SuppressLint("HardwareIds")
Expand Down Expand Up @@ -165,8 +166,8 @@ public PiracyChecker enableFoldersCheck(boolean foldersCheck) {
return this;
}

public PiracyChecker addAppToCheck(PirateApp app) {
this.extraApps.add(app);
public PiracyChecker addAppToCheck(PirateApp... apps) {
this.extraApps.addAll(Arrays.asList(apps));
return this;
}

Expand Down

0 comments on commit 5f0f190

Please sign in to comment.