removed not used return value
This commit is contained in:
parent
cd524c4e61
commit
b3ec24f177
@ -34,7 +34,7 @@ public class DownloadTile extends AsyncTask<String, Void, Boolean> {
|
|||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
is = conn.getInputStream();
|
is = conn.getInputStream();
|
||||||
Log.d("iitcm", "writing to file: " + file.toString());
|
Log.d("iitcm", "writing to file: " + file.toString());
|
||||||
File output = writeTileToFile(is, file, mFilePath);
|
writeTileToFile(is, file, mFilePath);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
@ -45,7 +45,7 @@ public class DownloadTile extends AsyncTask<String, Void, Boolean> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private File writeTileToFile(InputStream inStream, File file, String path) throws Exception {
|
private void writeTileToFile(InputStream inStream, File file, String path) throws Exception {
|
||||||
File filePath = new File(path);
|
File filePath = new File(path);
|
||||||
filePath.mkdirs();
|
filePath.mkdirs();
|
||||||
FileOutputStream outStream = new FileOutputStream(file);
|
FileOutputStream outStream = new FileOutputStream(file);
|
||||||
@ -56,7 +56,6 @@ public class DownloadTile extends AsyncTask<String, Void, Boolean> {
|
|||||||
outStream.write(buffer, 0, len);
|
outStream.write(buffer, 0, len);
|
||||||
}
|
}
|
||||||
if(outStream!=null) outStream.close();
|
if(outStream!=null) outStream.close();
|
||||||
return file;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user