Skip to content

Commit

Permalink
Remove unused files and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Mar 5, 2024
1 parent 86c57d4 commit 77fab53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
33 changes: 0 additions & 33 deletions app/src/main/java/com/infomaniak/drive/utils/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -285,39 +285,6 @@ fun Drive?.getDriveUsers(): List<DriveUser> = this?.users?.let { categories ->
return@let DriveInfosController.getUsers(ArrayList(categories.drive + categories.account))
} ?: listOf()

fun Fragment.setUploadFileInProgress(
binding: LayoutUploadFileInProgressBinding,
title: Int,
folderId: Int,
) = with(binding.uploadFileInProgress) {
val radius = context.resources.getDimension(R.dimen.cardViewRadius)
root.shapeAppearanceModel = root.shapeAppearanceModel.toBuilder()
.setTopLeftCorner(CornerFamily.ROUNDED, radius)
.setTopRightCorner(CornerFamily.ROUNDED, radius)
.setBottomLeftCorner(CornerFamily.ROUNDED, radius)
.setBottomRightCorner(CornerFamily.ROUNDED, radius)
.build()

itemViewFile.fileName.setText(title)

root.setOnClickListener { navigateToUploadView(folderId) }
}

fun LayoutUploadFileInProgressBinding.updateUploadFileInProgress(pendingFilesCount: Int) {
if (pendingFilesCount > 0) {
uploadFileInProgress.itemViewFile.fileSize.text = context.resources.getQuantityString(
R.plurals.uploadInProgressNumberFile,
pendingFilesCount,
pendingFilesCount
)
uploadFileInProgress.itemViewFile.filePreview.isGone = true
uploadFileInProgress.itemViewFile.fileProgression.isVisible = true
root.isVisible = true
} else {
root.isGone = true
}
}

fun Context.shareText(text: String) {
trackShareRightsEvent("shareButton")
val intent = Intent().apply {
Expand Down
31 changes: 0 additions & 31 deletions app/src/main/res/layout/layout_upload_file_in_progress.xml

This file was deleted.

0 comments on commit 77fab53

Please sign in to comment.