Skip to content

Commit

Permalink
#450 fix cancelling uploads on Android API 26+
Browse files Browse the repository at this point in the history
  • Loading branch information
gotev committed Aug 18, 2019
1 parent ecfb1ba commit 9544988
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.Context;
import android.content.Intent;

import net.gotev.uploadservice.UploadServiceConfig;
import net.gotev.uploadservicedemo.BuildConfig;

/**
Expand All @@ -25,6 +26,7 @@ public static PendingIntent getCancelUploadAction(final Context context,
final int requestCode,
final String uploadID) {
Intent intent = new Intent(INTENT_ACTION);
intent.setPackage(UploadServiceConfig.INSTANCE.getNamespace());
intent.putExtra(PARAM_ACTION, ACTION_CANCEL_UPLOAD);
intent.putExtra(PARAM_UPLOAD_ID, uploadID);

Expand Down

0 comments on commit 9544988

Please sign in to comment.