Skip to content

Commit d89b091

Browse files
author
Shushant
committed
Refactored method name
1 parent 4fe4245 commit d89b091

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/org/opendroidphp/app/tasks/RepoDownloaderTask.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.net.HttpURLConnection;
1616
import java.net.URL;
1717

18-
public class RepoDownloaderTask extends ProgressDialogTask {
18+
public class RepoDownloaderTask extends ProgressDialogTask<String, String, String> {
1919

2020
public static final String DOWNLOAD_COMPLETED = "org.opendroidphp.package.DOWNLOADED";
2121
public static final String DOWNLOAD_ERROR = "org.opendroidphp.package.ERROR";
@@ -61,7 +61,7 @@ protected String doInBackground(String... repositoryUrl) {
6161
HttpURLConnection connection = null;
6262

6363
try {
64-
URL url = new URL(repository.getRepositoryUrl());
64+
URL url = new URL(repository.getUrl());
6565
connection = (HttpURLConnection) url.openConnection();
6666
connection.connect();
6767

@@ -82,7 +82,7 @@ protected String doInBackground(String... repositoryUrl) {
8282

8383
if (!repo.exists()) repo.mkdirs();
8484

85-
String repoFilename = repo.getPath() + "/" + FilenameUtils.getFilename(repository.getRepositoryUrl());
85+
String repoFilename = repo.getPath() + "/" + FilenameUtils.getFilename(repository.getUrl());
8686

8787
File fileName = new File(repoFilename);
8888
if (fileName.exists())

0 commit comments

Comments
 (0)