ApkDownloader: rename remoteFile() to getRemoteAddress()

Since it doesn't return a java.io.File but a String with the remote address
This commit is contained in:
Hans-Christoph Steiner 2014-02-25 20:23:41 -05:00 committed by Peter Serwylo
parent 19e722a9d7
commit 084a048740
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ public class ApkDownloader extends Thread {
return localfile;
}
public String remoteFile() {
public String getRemoteAddress() {
return repoaddress + "/" + curapk.apkName.replace(" ", "%20");
}
@ -82,7 +82,7 @@ public class ApkDownloader extends Thread {
}
// If we haven't got the apk locally, we'll have to download it...
String remoteAddress = remoteFile();
String remoteAddress = getRemoteAddress();
HttpDownloader downloader = new HttpDownloader(remoteAddress, localfile);
if (listener != null) {

View File

@ -1106,7 +1106,7 @@ public class AppDetails extends ListActivity {
public void run() {
// this must be on the main UI thread
if (pd == null) {
pd = createProgressDialog(download.remoteFile(),
pd = createProgressDialog(download.getRemoteAddress(),
event.progress, event.total);
} else {
pd.setProgress(event.progress);