diff options
author | Julian Kast <julian@livio.com> | 2020-03-11 10:05:24 -0400 |
---|---|---|
committer | Julian Kast <julian@livio.com> | 2020-03-11 10:05:24 -0400 |
commit | c4d6e48ac37a40e70f0b47da0671046da63b259c (patch) | |
tree | d48e87b01440ee6a660390fd3eb40b4967fc0ab5 | |
parent | 21450c41b8bcbf95d826a2aa8687bd195e85862d (diff) | |
download | sdl_android-c4d6e48ac37a40e70f0b47da0671046da63b259c.tar.gz |
Removed unnecessary if statements in uploadFile and uploadFiles
-rw-r--r-- | base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java b/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java index 497dc2dab..8435e479e 100644 --- a/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java +++ b/base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java @@ -329,11 +329,6 @@ abstract class BaseFileManager extends BaseSubManager { listener.onComplete(true); return; } - // In sdl_ios: HAX: [#827](https://github.com/smartdevicelink/sdl_ios/issues/827) Older versions of Core had a bug where list files would cache incorrectly. - // This led to attempted uploads failing due to the system thinking they were already there when they were not. - if (!file.isPersistent() && !hasUploadedFile(file)) { - file.setOverwrite(true); - } if (!file.isOverwrite() && hasUploadedFile(file)) { Log.w(TAG, "Files that have already uploaded and have an Overwrite property set to false will not be re-Upload"); listener.onComplete(true); @@ -406,11 +401,6 @@ abstract class BaseFileManager extends BaseSubManager { Log.w(TAG, "Static icons don't need to be uploaded"); continue; } - // In sdl_ios: HAX: [#827](https://github.com/smartdevicelink/sdl_ios/issues/827) Older versions of Core had a bug where list files would cache incorrectly. - // This led to attempted uploads failing due to the system thinking they were already there when they were not. - if (!file.isPersistent() && !hasUploadedFile(file)) { - file.setOverwrite(true); - } if (!file.isOverwrite() && hasUploadedFile(file)) { Log.w(TAG, "Files that have already uploaded and have an Overwrite property set to false will not be re-Upload"); continue; |