android 5 (lollipop) fixup

this commit attempts to fix the pickAvailableTemporalDir() method in ROMS that not are CTS compliant.
This commit is contained in:
kapodamy 2020-01-08 14:36:31 -03:00
parent 9f47a274a8
commit 00eddcb237
2 changed files with 24 additions and 9 deletions

View file

@ -80,7 +80,7 @@ public abstract class Postprocessing implements Serializable {
private transient DownloadMission mission;
private File tempFile;
private transient File tempFile;
Postprocessing(boolean reserveSpace, boolean worksOnSameFile, String algorithmName) {
this.reserveSpace = reserveSpace;
@ -95,8 +95,12 @@ public abstract class Postprocessing implements Serializable {
public void cleanupTemporalDir() {
if (tempFile != null && tempFile.exists()) {
//noinspection ResultOfMethodCallIgnored
tempFile.delete();
try {
//noinspection ResultOfMethodCallIgnored
tempFile.delete();
} catch (Exception e) {
// nothing to do
}
}
}