Skip to content

Commit e73ce9f

Browse files
committed
fix lint
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 7427f62 commit e73ce9f

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,6 +2828,7 @@ class FileDisplayActivity :
28282828
initFile()
28292829
}
28302830

2831+
@Suppress("LongMethod")
28312832
private fun initFile() {
28322833
val userOpt = user
28332834
if (userOpt.isEmpty) {

app/src/main/java/com/owncloud/android/ui/adapter/LinkShareViewHolder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ internal class LinkShareViewHolder(itemView: View) : RecyclerView.ViewHolder(ite
9898
}
9999
}
100100

101+
@Suppress("ReturnCount")
101102
private fun setSubline(binding: FileDetailsShareLinkShareItemBinding?, context: Context?, publicShare: OCShare) {
102103
if (binding == null || context == null) {
103104
return

app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ class OCFileListDelegate(
344344
fileUploadHelper.isUploading(file.remotePath, user.accountName)
345345
}
346346

347+
@Suppress("ComplexCondition")
347348
private fun showLocalFileIndicator(file: OCFile, holder: ListViewHolder) {
348349
var isFolderDown = false
349350
if (file.isFolder && !file.isEncrypted && file.fileLength != 0L && file.etag.isNotBlank()) {

app/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ import javax.inject.Inject
9595
*
9696
* DO NOT CALL IT: an [OCFile] and [User] must be provided for a successful construction
9797
*/
98-
@Suppress("NestedBlockDepth", "ComplexMethod", "LongMethod", "TooManyFunctions")
98+
@Suppress("NestedBlockDepth", "ComplexMethod", "LongMethod", "TooManyFunctions", "ReturnCount")
9999
class PreviewMediaFragment :
100100
FileFragment(),
101101
OnTouchListener,
@@ -466,7 +466,6 @@ class PreviewMediaFragment :
466466
}
467467
}
468468

469-
@Suppress("ReturnCount")
470469
private fun loadStreamUrl(user: User?, clientFactory: ClientFactory?, fileId: Long): Uri? {
471470
val client: OwnCloudClient? = try {
472471
clientFactory?.create(user)

0 commit comments

Comments
 (0)