Fix if
condition which was always true
.
I suspect this is the expected behaviour, seeing as this service handles downloads for both Apks and repo indices.
This commit is contained in:
parent
8ce4cad7ef
commit
3f9881a6f5
@ -270,7 +270,7 @@ public class DownloaderService extends Service {
|
|||||||
Intent intent = new Intent(context, DownloaderService.class);
|
Intent intent = new Intent(context, DownloaderService.class);
|
||||||
intent.setAction(ACTION_QUEUE);
|
intent.setAction(ACTION_QUEUE);
|
||||||
intent.setData(Uri.parse(urlString));
|
intent.setData(Uri.parse(urlString));
|
||||||
if (!TextUtils.isEmpty(EXTRA_PACKAGE_NAME)) {
|
if (!TextUtils.isEmpty(packageName)) {
|
||||||
intent.putExtra(EXTRA_PACKAGE_NAME, packageName);
|
intent.putExtra(EXTRA_PACKAGE_NAME, packageName);
|
||||||
}
|
}
|
||||||
context.startService(intent);
|
context.startService(intent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user