Skip to content

Commit 5361711

Browse files
files-clients-114: gradlew spotlessApply
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
1 parent 4b07c69 commit 5361711

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

app/src/main/java/com/owncloud/android/ui/fragment/OCFileListBottomSheetDialog.kt

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ class OCFileListBottomSheetDialog(
164164

165165
@Suppress("DEPRECATION", "LongMethod", "MagicNumber")
166166
private fun initCreatorContainer() {
167-
168167
if (file.isEncrypted) {
169168
return
170169
}
@@ -207,8 +206,9 @@ class OCFileListBottomSheetDialog(
207206
}
208207
}
209208

210-
if (creatorsOverview.isNotEmpty())
209+
if (creatorsOverview.isNotEmpty()) {
211210
creatorsOverview.visibility = View.VISIBLE
211+
}
212212

213213
menuMoreDocumentsContainer.visibility = if (creators.isEmpty()) View.GONE else View.VISIBLE
214214
}
@@ -257,10 +257,7 @@ class OCFileListBottomSheetDialog(
257257
* @param creatorAction Action for which the button is created
258258
* @param showAsBox If true, creates a squarish view with weight to be displayed horizontally, otherwise a row
259259
*/
260-
private fun buildCreatorButton(
261-
creatorAction: CreatorAction,
262-
showAsBox: Boolean
263-
): MaterialButton {
260+
private fun buildCreatorButton(creatorAction: CreatorAction, showAsBox: Boolean): MaterialButton {
264261
val itemHeight = context.resources.getDimensionPixelSize(
265262
if (showAsBox) R.dimen.bottom_sheet_horizontal_item_height else R.dimen.bottom_sheet_item_height
266263
)
@@ -395,9 +392,5 @@ class OCFileListBottomSheetDialog(
395392
}
396393
}
397394

398-
private data class CreatorAction (
399-
val text: String,
400-
val icon: Drawable?,
401-
val action: () -> Unit
402-
)
395+
private data class CreatorAction(val text: String, val icon: Drawable?, val action: () -> Unit)
403396
}

0 commit comments

Comments
 (0)