When updating, don't download icons we already have
This commit is contained in:
parent
29cfb62505
commit
bf8aa30a57
@ -137,12 +137,12 @@ public class RepoXMLHandler extends DefaultHandler {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
String destpath = mctx.getString(R.string.icons_path) + app.icon;
|
String destpath = mctx.getString(R.string.icons_path) + app.icon;
|
||||||
BufferedInputStream getit = new BufferedInputStream(new URL(mserver
|
|
||||||
+ "/icons/" + app.icon).openStream());
|
|
||||||
File f = new File(destpath);
|
File f = new File(destpath);
|
||||||
if (f.exists())
|
if (f.exists())
|
||||||
f.delete();
|
return;
|
||||||
|
|
||||||
|
BufferedInputStream getit = new BufferedInputStream(new URL(mserver
|
||||||
|
+ "/icons/" + app.icon).openStream());
|
||||||
FileOutputStream saveit = new FileOutputStream(destpath);
|
FileOutputStream saveit = new FileOutputStream(destpath);
|
||||||
BufferedOutputStream bout = new BufferedOutputStream(saveit, 1024);
|
BufferedOutputStream bout = new BufferedOutputStream(saveit, 1024);
|
||||||
byte data[] = new byte[1024];
|
byte data[] = new byte[1024];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user