File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/org/opendroidphp/app/tasks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515import java .net .HttpURLConnection ;
1616import 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 ())
You can’t perform that action at this time.
0 commit comments