Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3388678

Browse files
committed
Fix issue gotev#8 - Implicit intents with startService are not safe - Thank
you @MarsVard
1 parent eccc37f commit 3388678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/alexbbb/uploadservice/UploadService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static void startUpload(final UploadRequest task) throws IllegalArgumentE
8787
} else {
8888
task.validate();
8989

90-
final Intent intent = new Intent(UploadService.class.getName());
90+
final Intent intent = new Intent(task.getContext(), UploadService.class);
9191

9292
intent.setAction(getActionUpload());
9393
intent.putExtra(PARAM_NOTIFICATION_CONFIG, task.getNotificationConfig());

0 commit comments

Comments
 (0)