Skip to content

Commit b0fd97f

Browse files
author
Julian Kast
committed
changed isOverwrite to getOverwrite in sdlFIle in both projects and BaseFileManager
1 parent e975283 commit b0fd97f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes
  • base/src/main/java/com/smartdevicelink/managers/file
  • javaSE/src/main/java/com/smartdevicelink/managers/file/filetypes

android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public boolean isStaticIcon() {
226226
* Gets the overwrite property for an SdlFile by default its set to true
227227
* @return a boolean value that indicates if a file can be overwritten.
228228
*/
229-
public boolean isOverwrite() {
229+
public boolean getOverwrite() {
230230
return overwrite;
231231
}
232232

base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public void uploadFile(@NonNull final SdlFile file, final CompletionListener lis
329329
listener.onComplete(true);
330330
return;
331331
}
332-
if (!file.isOverwrite() && hasUploadedFile(file)) {
332+
if (!file.getOverwrite() && hasUploadedFile(file)) {
333333
Log.w(TAG, String.format("%s has already been uploaded and the overwrite property is set to false. It will not be uploaded again", file.getName()));
334334
listener.onComplete(true);
335335
return;
@@ -401,7 +401,7 @@ public void uploadFiles(@NonNull List<? extends SdlFile> files, final MultipleFi
401401
Log.w(TAG, String.format("%s is a static icon and doesn't need to be uploaded", file.getName()));
402402
continue;
403403
}
404-
if (!file.isOverwrite() && hasUploadedFile(file)) {
404+
if (!file.getOverwrite() && hasUploadedFile(file)) {
405405
Log.w(TAG, String.format("%s has already been uploaded and the overwrite property is set to false. It will not be uploaded again", file.getName()));
406406
continue;
407407
}

javaSE/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public boolean isStaticIcon() {
192192
* Gets the overwrite property for an SdlFile by default its set to true
193193
* @return a boolean value that indicates if a file can be overwritten.
194194
*/
195-
public boolean isOverwrite() {
195+
public boolean getOverwrite() {
196196
return overwrite;
197197
}
198198

0 commit comments

Comments
 (0)