Skip to content

Commit

Permalink
Fix issue when activity is finished
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Mar 19, 2017
1 parent 8a3501f commit e6538bc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ public void allow() {

@Override
public void dontAllow(@NonNull PiracyCheckerError error, @Nullable PirateApp app) {
if (context instanceof Activity && ((Activity) context).isFinishing()) {
return;
}

String dialogContent = unlicensedDialogDescription;
if (app != null)
dialogContent = context.getString(R.string.unauthorized_app_found, app.getName());
Expand Down

0 comments on commit e6538bc

Please sign in to comment.