Skip to content

Commit 2a97457

Browse files
alperozturk96backportbot[bot]
authored andcommitted
fix codacy
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 3307635 commit 2a97457

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,12 +1941,13 @@ class FileDisplayActivity :
19411941
SearchType.GALLERY_SEARCH -> VirtualFolderType.GALLERY
19421942
else -> VirtualFolderType.NONE
19431943
}
1944-
} else null
1944+
} else {
1945+
null
1946+
}
19451947

19461948
startImagePreview(file, file.isDown, type)
19471949
}
19481950

1949-
19501951
fun previewFile(file: OCFile, setFabVisible: CompletionCallback?) {
19511952
if (!file.isDown) {
19521953
Log_OC.d(TAG, "File is not downloaded, cannot be previewed")
@@ -2470,11 +2471,7 @@ class FileDisplayActivity :
24702471
}
24712472
}
24722473

2473-
fun startImagePreview(
2474-
file: OCFile,
2475-
showPreview: Boolean,
2476-
type: VirtualFolderType? = null
2477-
) {
2474+
fun startImagePreview(file: OCFile, showPreview: Boolean, type: VirtualFolderType? = null) {
24782475
if (user.isEmpty) {
24792476
Log_OC.e(TAG, "cannot start image preview")
24802477
return
@@ -2761,7 +2758,7 @@ class FileDisplayActivity :
27612758
startImagePreview(
27622759
file,
27632760
true,
2764-
virtualType,
2761+
virtualType
27652762
)
27662763
} else {
27672764
startImagePreview(file, true)

0 commit comments

Comments
 (0)