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:
Peter Serwylo 2016-04-21 13:26:03 +10:00
parent 8ce4cad7ef
commit 3f9881a6f5

View File

@ -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);