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:
parent
19e722a9d7
commit
084a048740
@ -58,7 +58,7 @@ public class ApkDownloader extends Thread {
|
|||||||
return localfile;
|
return localfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String remoteFile() {
|
public String getRemoteAddress() {
|
||||||
return repoaddress + "/" + curapk.apkName.replace(" ", "%20");
|
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...
|
// 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);
|
HttpDownloader downloader = new HttpDownloader(remoteAddress, localfile);
|
||||||
|
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
|
@ -1106,7 +1106,7 @@ public class AppDetails extends ListActivity {
|
|||||||
public void run() {
|
public void run() {
|
||||||
// this must be on the main UI thread
|
// this must be on the main UI thread
|
||||||
if (pd == null) {
|
if (pd == null) {
|
||||||
pd = createProgressDialog(download.remoteFile(),
|
pd = createProgressDialog(download.getRemoteAddress(),
|
||||||
event.progress, event.total);
|
event.progress, event.total);
|
||||||
} else {
|
} else {
|
||||||
pd.setProgress(event.progress);
|
pd.setProgress(event.progress);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user